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"
11
11
ENV HOME="/config"
12
12
13
13
RUN \
14
+ echo "**** install dependencies ****" && \
14
15
apt-get update && \
15
16
apt-get install -y \
16
17
git \
@@ -23,12 +24,14 @@ RUN \
23
24
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases" \
24
25
| jq -r 'first(.[] | select(.prerelease == true)) | .tag_name' ); \
25
26
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 && \
26
30
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} " && \
29
33
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 && \
32
35
echo "**** clean up ****" && \
33
36
rm -rf \
34
37
/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
229
229
230
230
## Versions
231
231
232
+ * ** 05.03.20:** - Updates for v3.0.0 (structural changes).
232
233
* ** 09.07.19:** - Add optional sudo access.
233
234
* ** 01.07.19:** - Add nano.
234
235
* ** 24.06.19:** - Initial Release.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ app_setup_block: |
65
65
66
66
# changelog
67
67
changelogs :
68
+ - { date: "05.03.20:", desc: "Updates for v3.0.0 (structural changes)." }
68
69
- { date: "09.07.19:", desc: "Add optional sudo access." }
69
70
- { date: "01.07.19:", desc: "Add nano." }
70
71
- { date: "24.06.19:", desc: "Initial Release." }
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
3
if [ -n "${PASSWORD}" ]; then
4
- AUTH="--auth password"
4
+ AUTH="password"
5
5
else
6
- echo "starting with no password"
6
+ AUTH="none"
7
+ echo "starting with no password"
7
8
fi
8
9
9
10
exec \
10
11
s6-setuidgid abc \
11
- /usr/bin/code-server \
12
+ /app/code-server/code-server \
13
+ --host 0.0.0.0 \
12
14
--port 8443 \
13
15
--user-data-dir /config/data \
14
16
--extensions-dir /config/extensions \
15
17
--disable-telemetry \
16
18
--disable-updates \
17
- ${AUTH} \
19
+ --auth ${AUTH} \
18
20
/config/workspace
You can’t perform that action at this time.
0 commit comments