File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
root/etc/services.d/code-server Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ LABEL maintainer="aptalca"
1111ENV HOME="/config"
1212
1313RUN \
14+ echo "**** install dependencies ****" && \
1415 apt-get update && \
1516 apt-get install -y \
1617 git \
@@ -23,12 +24,14 @@ RUN \
2324 CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases" \
2425 | jq -r 'first(.[] | select(.prerelease == true)) | .tag_name' ); \
2526 fi && \
27+ CODE_URL=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/tags/${CODE_RELEASE}" \
28+ | jq -r '.assets[] | select(.browser_download_url | contains("linux-x86_64")) | .browser_download_url' ) && \
29+ mkdir -p /app/code-server && \
2630 curl -o \
27- /tmp/code.tar.gz -L \
28- "https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x86_64.tar.gz " && \
31+ /tmp/code.tar.gz -L \
32+ "${CODE_URL} " && \
2933 tar xzf /tmp/code.tar.gz -C \
30- /usr/bin/ --strip-components=1 \
31- --wildcards code-server*/code-server && \
34+ /app/code-server --strip-components=1 && \
3235 echo "**** clean up ****" && \
3336 rm -rf \
3437 /tmp/* \
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
229229
230230## Versions
231231
232+ * ** 05.03.20:** - Updates for v3.0.0 (structural changes).
232233* ** 09.07.19:** - Add optional sudo access.
233234* ** 01.07.19:** - Add nano.
234235* ** 24.06.19:** - Initial Release.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ app_setup_block: |
6565
6666# changelog
6767changelogs :
68+ - { date: "05.03.20:", desc: "Updates for v3.0.0 (structural changes)." }
6869 - { date: "09.07.19:", desc: "Add optional sudo access." }
6970 - { date: "01.07.19:", desc: "Add nano." }
7071 - { date: "24.06.19:", desc: "Initial Release." }
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
33if [ -n "${PASSWORD}" ]; then
4- AUTH="--auth password"
4+ AUTH="password"
55else
6- echo "starting with no password"
6+ AUTH="none"
7+ echo "starting with no password"
78fi
89
910exec \
1011 s6-setuidgid abc \
11- /usr/bin/code-server \
12+ /app/code-server/code-server \
13+ --host 0.0.0.0 \
1214 --port 8443 \
1315 --user-data-dir /config/data \
1416 --extensions-dir /config/extensions \
1517 --disable-telemetry \
1618 --disable-updates \
17- ${AUTH} \
19+ --auth ${AUTH} \
1820 /config/workspace
You can’t perform that action at this time.
0 commit comments