Skip to content

Commit 5423a64

Browse files
authored
Merge pull request #22 from linuxserver/insiders-jammy
rebase insiders to jammy and s6v3, fix chown
2 parents d54b1b2 + 9d3a2ba commit 5423a64

File tree

16 files changed

+29
-32
lines changed

16 files changed

+29
-32
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
22

33
# set version label
44
ARG BUILD_DATE
@@ -8,6 +8,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
88
LABEL maintainer="aptalca"
99

1010
# environment settings
11+
ARG DEBIAN_FRONTEND="noninteractive"
1112
ENV HOME="/config"
1213

1314
RUN \
@@ -19,6 +20,7 @@ RUN \
1920
libatomic1 \
2021
nano \
2122
net-tools \
23+
netcat \
2224
sudo && \
2325
echo "**** install openvscode-server ****" && \
2426
if [ -z ${CODE_RELEASE+x} ]; then \

Dockerfile.aarch64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-focal
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
22

33
# set version label
44
ARG BUILD_DATE
@@ -8,6 +8,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
88
LABEL maintainer="aptalca"
99

1010
# environment settings
11+
ARG DEBIAN_FRONTEND="noninteractive"
1112
ENV HOME="/config"
1213

1314
RUN \
@@ -19,6 +20,7 @@ RUN \
1920
libatomic1 \
2021
nano \
2122
net-tools \
23+
netcat \
2224
sudo && \
2325
echo "**** install openvscode-server ****" && \
2426
if [ -z ${CODE_RELEASE+x} ]; then \

Dockerfile.armhf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
22

33
# set version label
44
ARG BUILD_DATE
@@ -8,6 +8,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
88
LABEL maintainer="aptalca"
99

1010
# environment settings
11+
ARG DEBIAN_FRONTEND="noninteractive"
1112
ENV HOME="/config"
1213

1314
RUN \
@@ -19,6 +20,7 @@ RUN \
1920
libatomic1 \
2021
nano \
2122
net-tools \
23+
netcat \
2224
sudo && \
2325
echo "**** install openvscode-server ****" && \
2426
if [ -z ${CODE_RELEASE+x} ]; then \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
252252

253253
## Versions
254254

255+
* **29.09.22:** - Rebase to jammy, switch to s6v3. Fix chown logic to skip `/config/workspace` contents.
255256
* **12.02.22:** - Update `install-extension` helper to compensate for upstream changes.
256257
* **04.02.22:** - Update binary for 1.64.0+. Allow for no token set when both toekn env vars are unset. Add libsecret for keytar.
257258
* **29.12.21:** - Add `install-extension` as a helper for mods to install extensions.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ app_setup_block: |
6262
6363
# changelog
6464
changelogs:
65+
- { date: "29.09.22:", desc: "Rebase to jammy, switch to s6v3. Fix chown logic to skip `/config/workspace` contents." }
6566
- { date: "12.02.22:", desc: "Update `install-extension` helper to compensate for upstream changes." }
6667
- { date: "04.02.22:", desc: "Update binary for 1.64.0+. Allow for no token set when both toekn env vars are unset. Add libsecret for keytar." }
6768
- { date: "29.12.21:", desc: "Add `install-extension` as a helper for mods to install extensions." }

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-opencode-server

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-opencode-server/dependencies.d/init-config

Whitespace-only changes.

root/etc/cont-init.d/30-config renamed to root/etc/s6-overlay/s6-rc.d/init-opencode-server/run

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,14 @@ fi
2222
[[ ! -f /config/.profile ]] && \
2323
cp /root/.profile /config/.profile
2424

25-
# permissions
26-
if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
27-
CORES=$(nproc --all)
25+
# fix permissions (ignore contents of /config/workspace)
26+
echo "setting permissions::config"
27+
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
28+
chown abc:abc /config/workspace
29+
echo "setting permissions::app"
30+
chown -R abc:abc /app/openvscode-server
2831

29-
# Split workload between config and workspace
30-
echo "setting permissions::configuration"
31-
find /config -path /config/workspace -prune -false -o -type d -print0 | \
32-
xargs --null -r --max-args=1 --max-procs=$((CORES*2*8)) \
33-
chown -R abc:abc
34-
35-
echo "setting permissions::workspace"
36-
chown abc:abc /config/workspace
37-
echo "setting permissions::app"
38-
chown -R abc:abc /app/openvscode-server
39-
else
40-
# Set permissions on data mount
41-
# do not decend into the workspace
42-
chown -R abc:abc "$(ls /config -I workspace)"
43-
chown abc:abc /config/workspace
44-
chown -R abc:abc /app/openvscode-server
45-
fi
4632
chmod 700 /config/.ssh
4733
if [ -n "$(ls -A /config/.ssh)" ]; then
4834
chmod 600 /config/.ssh/*
49-
fi
35+
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-opencode-server/run

0 commit comments

Comments
 (0)