File tree 8 files changed +156
-13
lines changed
root/etc/services.d/code-server 8 files changed +156
-13
lines changed Original file line number Diff line number Diff line change @@ -11,28 +11,44 @@ LABEL maintainer="aptalca"
11
11
ENV HOME="/config"
12
12
13
13
RUN \
14
- echo "**** install dependencies ****" && \
14
+ echo "**** install node repo ****" && \
15
15
apt-get update && \
16
+ apt-get install -y \
17
+ gnupg && \
18
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19
+ echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
20
+ > /etc/apt/sources.list.d/nodesource.list && \
21
+ echo "**** install build dependencies ****" && \
22
+ apt-get update && \
23
+ apt-get install -y \
24
+ build-essential \
25
+ libx11-dev \
26
+ libxkbfile-dev \
27
+ libsecret-1-dev \
28
+ pkg-config && \
29
+ echo "**** install runtime dependencies ****" && \
16
30
apt-get install -y \
17
31
git \
18
32
jq \
19
33
nano \
20
34
net-tools \
35
+ nodejs \
21
36
sudo && \
22
37
echo "**** install code-server ****" && \
23
38
if [ -z ${CODE_RELEASE+x} ]; then \
24
39
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
25
40
| awk '/tag_name/{print $4;exit}' FS='[""]' ); \
26
41
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 && \
30
- curl -o \
31
- /tmp/code.tar.gz -L \
32
- "${CODE_URL}" && \
33
- tar xzf /tmp/code.tar.gz -C \
34
- /app/code-server --strip-components=1 && \
42
+ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }' ) && \
43
+ npm install --unsafe-perm -g code-server@"$CODE_VERSION" && \
35
44
echo "**** clean up ****" && \
45
+ apt-get purge --auto-remove -y \
46
+ build-essential \
47
+ libx11-dev \
48
+ libxkbfile-dev \
49
+ libsecret-1-dev \
50
+ pkg-config && \
51
+ apt-get clean && \
36
52
rm -rf \
37
53
/tmp/* \
38
54
/var/lib/apt/lists/* \
Original file line number Diff line number Diff line change
1
+ FROM lsiobase/ubuntu:arm64v8-bionic
2
+
3
+ # set version label
4
+ ARG BUILD_DATE
5
+ ARG VERSION
6
+ ARG CODE_RELEASE
7
+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8
+ LABEL maintainer="aptalca"
9
+
10
+ # environment settings
11
+ ENV HOME="/config"
12
+
13
+ RUN \
14
+ echo "**** install node repo ****" && \
15
+ apt-get update && \
16
+ apt-get install -y \
17
+ gnupg && \
18
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19
+ echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
20
+ > /etc/apt/sources.list.d/nodesource.list && \
21
+ echo "**** install build dependencies ****" && \
22
+ apt-get update && \
23
+ apt-get install -y \
24
+ build-essential \
25
+ libx11-dev \
26
+ libxkbfile-dev \
27
+ libsecret-1-dev \
28
+ pkg-config && \
29
+ echo "**** install runtime dependencies ****" && \
30
+ apt-get install -y \
31
+ git \
32
+ jq \
33
+ nano \
34
+ net-tools \
35
+ nodejs \
36
+ sudo && \
37
+ echo "**** install code-server ****" && \
38
+ if [ -z ${CODE_RELEASE+x} ]; then \
39
+ CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
40
+ | awk '/tag_name/{print $4;exit}' FS='[""]'); \
41
+ fi && \
42
+ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
43
+ npm install --unsafe-perm -g code-server@"$CODE_VERSION" && \
44
+ echo "**** clean up ****" && \
45
+ apt-get purge --auto-remove -y \
46
+ build-essential \
47
+ libx11-dev \
48
+ libxkbfile-dev \
49
+ libsecret-1-dev \
50
+ pkg-config && \
51
+ apt-get clean && \
52
+ rm -rf \
53
+ /tmp/* \
54
+ /var/lib/apt/lists/* \
55
+ /var/tmp/*
56
+
57
+ # add local files
58
+ COPY /root /
59
+
60
+ # ports and volumes
61
+ EXPOSE 8443
Original file line number Diff line number Diff line change
1
+ FROM lsiobase/ubuntu:arm32v7-bionic
2
+
3
+ # set version label
4
+ ARG BUILD_DATE
5
+ ARG VERSION
6
+ ARG CODE_RELEASE
7
+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8
+ LABEL maintainer="aptalca"
9
+
10
+ # environment settings
11
+ ENV HOME="/config"
12
+
13
+ RUN \
14
+ echo "**** install node repo ****" && \
15
+ apt-get update && \
16
+ apt-get install -y \
17
+ gnupg && \
18
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19
+ echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
20
+ > /etc/apt/sources.list.d/nodesource.list && \
21
+ echo "**** install build dependencies ****" && \
22
+ apt-get update && \
23
+ apt-get install -y \
24
+ build-essential \
25
+ libx11-dev \
26
+ libxkbfile-dev \
27
+ libsecret-1-dev \
28
+ pkg-config && \
29
+ echo "**** install runtime dependencies ****" && \
30
+ apt-get install -y \
31
+ git \
32
+ jq \
33
+ nano \
34
+ net-tools \
35
+ nodejs \
36
+ sudo && \
37
+ echo "**** install code-server ****" && \
38
+ if [ -z ${CODE_RELEASE+x} ]; then \
39
+ CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
40
+ | awk '/tag_name/{print $4;exit}' FS='[""]'); \
41
+ fi && \
42
+ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
43
+ npm install --unsafe-perm -g code-server@"$CODE_VERSION" && \
44
+ echo "**** clean up ****" && \
45
+ apt-get purge --auto-remove -y \
46
+ build-essential \
47
+ libx11-dev \
48
+ libxkbfile-dev \
49
+ libsecret-1-dev \
50
+ pkg-config && \
51
+ apt-get clean && \
52
+ rm -rf \
53
+ /tmp/* \
54
+ /var/lib/apt/lists/* \
55
+ /var/tmp/*
56
+
57
+ # add local files
58
+ COPY /root /
59
+
60
+ # ports and volumes
61
+ EXPOSE 8443
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pipeline {
27
27
DEV_DOCKERHUB_IMAGE = ' lsiodev/code-server'
28
28
PR_DOCKERHUB_IMAGE = ' lspipepr/code-server'
29
29
DIST_IMAGE = ' ubuntu'
30
- MULTIARCH = ' false '
30
+ MULTIARCH = ' true '
31
31
CI = ' true'
32
32
CI_WEB = ' true'
33
33
CI_PORT = ' 8443'
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ The architectures supported by this image are:
57
57
| Architecture | Tag |
58
58
| :----: | --- |
59
59
| x86-64 | amd64-latest |
60
+ | arm64 | arm64v8-latest |
61
+ | armhf | arm32v7-latest |
60
62
61
63
## Version Tags
62
64
@@ -234,6 +236,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
234
236
235
237
## Versions
236
238
239
+ * ** 18.05.20:** - Switch to multi-arch images, install via npm.
237
240
* ** 29.04.20:** - Update start arguments.
238
241
* ** 01.04.20:** - Structural changes required for v3.
239
242
* ** 17.01.20:** - Fix artifact url retrieval from github.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ repo_vars:
18
18
- DEV_DOCKERHUB_IMAGE = 'lsiodev/code-server'
19
19
- PR_DOCKERHUB_IMAGE = 'lspipepr/code-server'
20
20
- DIST_IMAGE = 'ubuntu'
21
- - MULTIARCH='false '
21
+ - MULTIARCH='true '
22
22
- CI='true'
23
23
- CI_WEB='true'
24
24
- CI_PORT='8443'
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_
22
22
# supported architectures
23
23
available_architectures :
24
24
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
25
+ - { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
26
+ - { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
25
27
26
28
# development version
27
29
development_versions : true
@@ -65,6 +67,7 @@ app_setup_block: |
65
67
66
68
# changelog
67
69
changelogs :
70
+ - { date: "18.05.20:", desc: "Switch to multi-arch images, install via npm." }
68
71
- { date: "29.04.20:", desc: "Update start arguments." }
69
72
- { date: "01.04.20:", desc: "Structural changes required for v3." }
70
73
- { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
Original file line number Diff line number Diff line change 9
9
10
10
exec \
11
11
s6-setuidgid abc \
12
- /app/code-server /code-server \
12
+ /usr/bin /code-server \
13
13
--bind-addr 0.0.0.0:8443 \
14
14
--user-data-dir /config/data \
15
15
--extensions-dir /config/extensions \
16
16
--disable-telemetry \
17
- --disable-updates \
18
17
--auth "${AUTH}" \
19
18
/config/workspace
You can’t perform that action at this time.
0 commit comments