2019-06-24 20:03:06 +02:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
2019-06-24 21:27:16 +02:00
|
|
|
if [ -n "${PASSWORD}" ]; then
|
2019-10-24 22:28:48 +02:00
|
|
|
AUTH="password"
|
2019-06-24 21:27:16 +02:00
|
|
|
else
|
2019-10-24 22:28:48 +02:00
|
|
|
AUTH="none"
|
2019-06-24 21:27:16 +02:00
|
|
|
echo "starting with no password"
|
|
|
|
fi
|
|
|
|
|
2019-06-24 20:03:06 +02:00
|
|
|
exec \
|
2019-06-24 21:27:16 +02:00
|
|
|
s6-setuidgid abc \
|
2020-04-02 03:49:46 +02:00
|
|
|
/app/code-server/code-server \
|
|
|
|
--host 0.0.0.0 \
|
2019-10-24 21:51:46 +02:00
|
|
|
--port 8443 \
|
|
|
|
--user-data-dir /config/data \
|
|
|
|
--extensions-dir /config/extensions \
|
2019-06-24 21:27:16 +02:00
|
|
|
--disable-telemetry \
|
2019-10-24 21:51:46 +02:00
|
|
|
--disable-updates \
|
2019-10-24 22:28:48 +02:00
|
|
|
--auth "${AUTH}" \
|
2019-06-24 21:27:16 +02:00
|
|
|
/config/workspace
|