Skip to content

Commit dc1b3b3

Browse files
committed
add syntax, readme updates, use lsiown
1 parent a8702d1 commit dc1b3b3

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
24

35
# set version label

Dockerfile.aarch64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
24

35
# set version label

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ services:
9494
- CONNECTION_TOKEN_FILE= #optional
9595
- SUDO_PASSWORD=password #optional
9696
- SUDO_PASSWORD_HASH= #optional
97+
- CODE_ARGS= #optional
9798
volumes:
9899
- /path/to/vscodium-web/config:/config
99100
ports:
@@ -113,6 +114,7 @@ docker run -d \
113114
-e CONNECTION_TOKEN_FILE= `#optional` \
114115
-e SUDO_PASSWORD=password `#optional` \
115116
-e SUDO_PASSWORD_HASH= `#optional` \
117+
-e CODE_ARGS= `#optional` \
116118
-p 8000:8000 \
117119
-v /path/to/vscodium-web/config:/config \
118120
--restart unless-stopped \
@@ -133,6 +135,7 @@ Containers are configured using parameters passed at runtime (such as those abov
133135
| `-e CONNECTION_TOKEN_FILE=` | Optional path to a file inside the container that contains the security token for accessing the Web UI (ie. `/path/to/file`). Overrides `CONNECTION_TOKEN`. |
134136
| `-e SUDO_PASSWORD=password` | If this optional variable is set, user will have sudo access in the vscodium-web terminal with the specified password. |
135137
| `-e SUDO_PASSWORD_HASH=` | Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`. |
138+
| `-e CODE_ARGS=` | Optionally add cli parameters to vscodium binary. |
136139
| `-v /config` | Contains all relevant configuration files. |
137140

138141
## Environment variables from files (Docker secrets)

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ opt_param_env_vars:
2929
- {env_var: "CONNECTION_TOKEN_FILE", env_value: "", desc: "Optional path to a file inside the container that contains the security token for accessing the Web UI (ie. `/path/to/file`). Overrides `CONNECTION_TOKEN`."}
3030
- {env_var: "SUDO_PASSWORD", env_value: "password", desc: "If this optional variable is set, user will have sudo access in the vscodium-web terminal with the specified password."}
3131
- {env_var: "SUDO_PASSWORD_HASH", env_value: "", desc: "Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`."}
32+
- {env_var: "CODE_ARGS", env_value: "", desc: "Optionally add cli parameters to vscodium binary."}
3233
# application setup block
3334
app_setup_block_enabled: true
3435
app_setup_block: |

root/etc/s6-overlay/s6-rc.d/init-vscodium-web/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ fi
2828

2929
# fix permissions (ignore contents of /config/workspace)
3030
echo "setting permissions::config"
31-
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
32-
chown abc:abc /config/workspace
31+
find /config -path /config/workspace -prune -o -exec lsiown abc:abc {} +
32+
lsiown abc:abc /config/workspace
3333
echo "setting permissions::app"
34-
chown -R abc:abc /app/vscodium-web
34+
lsiown -R abc:abc /app/vscodium-web
3535

3636
chmod 700 /config/.ssh
3737
if [[ -n "$(ls -A /config/.ssh)" ]]; then

0 commit comments

Comments
 (0)