v2 compatibility

This commit is contained in:
aptalca 2019-10-24 15:51:46 -04:00 committed by Ryan Kuba
parent 524ba35499
commit a3a6e0f937
4 changed files with 9 additions and 7 deletions

View File

@ -24,7 +24,7 @@ RUN \
fi && \ fi && \
curl -o \ curl -o \
/tmp/code.tar.gz -L \ /tmp/code.tar.gz -L \
"https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x64.tar.gz" && \ "https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x86_64.tar.gz" && \
tar xzf /tmp/code.tar.gz -C \ tar xzf /tmp/code.tar.gz -C \
/usr/bin/ --strip-components=1 \ /usr/bin/ --strip-components=1 \
--wildcards code-server*/code-server && \ --wildcards code-server*/code-server && \

View File

@ -213,6 +213,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions ## Versions
* **24.10.19:** - Upgrade to v2 builds.
* **28.09.19:** - Update project logo. * **28.09.19:** - Update project logo.
* **21.09.19:** - Add development builds/tag. * **21.09.19:** - Add development builds/tag.
* **09.07.19:** - Add optional sudo access. * **09.07.19:** - Add optional sudo access.

View File

@ -65,6 +65,7 @@ app_setup_block: |
# changelog # changelog
changelogs: changelogs:
- { date: "24.10.19:", desc: "Upgrade to v2 builds." }
- { date: "28.09.19:", desc: "Update project logo." } - { date: "28.09.19:", desc: "Update project logo." }
- { date: "21.09.19:", desc: "Add development builds/tag." } - { date: "21.09.19:", desc: "Add development builds/tag." }
- { date: "09.07.19:", desc: "Add optional sudo access." } - { date: "09.07.19:", desc: "Add optional sudo access." }

View File

@ -1,18 +1,18 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
if [ -n "${PASSWORD}" ]; then if [ -n "${PASSWORD}" ]; then
PASSARG="-P ${PASSWORD}" AUTH="--auth password"
else else
PASSARG="-N"
echo "starting with no password" echo "starting with no password"
fi fi
exec \ exec \
s6-setuidgid abc \ s6-setuidgid abc \
/usr/bin/code-server \ /usr/bin/code-server \
-H \ --port 8443 \
${PASSARG} \ --user-data-dir /config/data \
-d /config/data \ --extensions-dir /config/extensions \
-e /config/extensions \
--disable-telemetry \ --disable-telemetry \
--disable-updates \
${AUTH} \
/config/workspace /config/workspace