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-09-23 04:42:55 +02:00
|
|
|
AUTH="--auth password"
|
2019-06-24 21:27:16 +02:00
|
|
|
else
|
|
|
|
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 \
|
2019-06-26 02:19:14 +02:00
|
|
|
/usr/bin/code-server \
|
2019-09-23 04:42:55 +02:00
|
|
|
--port 8443 \
|
|
|
|
--user-data-dir /config/data \
|
|
|
|
--extensions-dir /config/extensions \
|
2019-09-23 21:06:37 +02:00
|
|
|
--disable-telemetry \
|
2019-10-08 15:52:11 +02:00
|
|
|
--disable-updates \
|
2019-09-23 04:42:55 +02:00
|
|
|
${AUTH} \
|
2019-06-24 21:27:16 +02:00
|
|
|
/config/workspace
|