Built-in docker can be disabled
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-11-20 21:54:59 +01:00
parent f346ac5beb
commit 2c5a8eda24
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ CODE_GUID="${CODE_GUID:-1001}"
CODE_USERNAME=$(getent passwd "$CODE_UUID" | cut -d: -f1)
CODE_GROUPNAME=$(getent group "$CODE_GUID" | cut -d: -f1)
USER_SUDO="${USER_SUDO:-false}"
RUN_DOCKER="${RUN_DOCKER:-true}"
#GIT_NAME
#GIT_EMAIL
@@ -71,6 +72,7 @@ else
fi
export CODE_USERNAME
export RUN_DOCKER
cd /home/code
exec "$@"

View File

@@ -27,9 +27,11 @@ command = /usr/sbin/sshd -D
[program:containerd]
command = /usr/bin/containerd
autostart = %(ENV_RUN_DOCKER)s
[program:dockerd]
command = /usr/bin/dockerd --containerd=/run/containerd/containerd.sock
autostart = %(ENV_RUN_DOCKER)s
#[program:code]
#command = /usr/bin/code serve-web --host 0.0.0.0 --port 80