21 lines
394 B
Plaintext
Raw Normal View History

2019-06-24 14:03:06 -04:00
#!/usr/bin/with-contenv bash
2019-06-24 15:27:16 -04:00
if [ -n "${PASSWORD}" ]; then
2020-03-05 16:15:55 -05:00
AUTH="password"
2019-06-24 15:27:16 -04:00
else
2020-03-05 16:15:55 -05:00
AUTH="none"
echo "starting with no password"
2019-06-24 15:27:16 -04:00
fi
2019-06-24 14:03:06 -04:00
exec \
2019-06-24 15:27:16 -04:00
s6-setuidgid abc \
2020-03-05 16:15:55 -05:00
/app/code-server/code-server \
--host 0.0.0.0 \
2019-09-22 22:42:55 -04:00
--port 8443 \
--user-data-dir /config/data \
--extensions-dir /config/extensions \
2019-09-23 15:06:37 -04:00
--disable-telemetry \
2019-10-08 09:52:11 -04:00
--disable-updates \
2020-03-05 16:15:55 -05:00
--auth ${AUTH} \
2019-06-24 15:27:16 -04:00
/config/workspace