Skip to content

Commit 236e751

Browse files
committed
Merge branch 'master' into ipv6
2 parents e9f4337 + 7a2065c commit 236e751

File tree

15 files changed

+746
-636
lines changed

15 files changed

+746
-636
lines changed

.github/workflows/package_trigger.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

Dockerfile

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

35
# set version label
46
ARG BUILD_DATE
@@ -16,11 +18,9 @@ RUN \
1618
apt-get update && \
1719
apt-get install -y \
1820
git \
19-
jq \
2021
libatomic1 \
2122
nano \
2223
net-tools \
23-
netcat \
2424
sudo && \
2525
echo "**** install code-server ****" && \
2626
if [ -z ${CODE_RELEASE+x} ]; then \
@@ -33,6 +33,7 @@ RUN \
3333
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
3434
tar xf /tmp/code-server.tar.gz -C \
3535
/app/code-server --strip-components=1 && \
36+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3637
echo "**** clean up ****" && \
3738
apt-get clean && \
3839
rm -rf \

Dockerfile.aarch64

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

35
# set version label
46
ARG BUILD_DATE
@@ -16,11 +18,9 @@ RUN \
1618
apt-get update && \
1719
apt-get install -y \
1820
git \
19-
jq \
2021
libatomic1 \
2122
nano \
2223
net-tools \
23-
netcat \
2424
sudo && \
2525
echo "**** install code-server ****" && \
2626
if [ -z ${CODE_RELEASE+x} ]; then \
@@ -33,6 +33,7 @@ RUN \
3333
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-arm64.tar.gz" && \
3434
tar xf /tmp/code-server.tar.gz -C \
3535
/app/code-server --strip-components=1 && \
36+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3637
echo "**** clean up ****" && \
3738
apt-get clean && \
3839
rm -rf \

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pipeline {
3333
CI_PORT='8443'
3434
CI_SSL='false'
3535
CI_DELAY='120'
36-
CI_DOCKERENV='TZ=US/Pacific'
37-
CI_AUTH='user:password'
36+
CI_DOCKERENV=''
37+
CI_AUTH=''
3838
CI_WEBPATH=''
3939
}
4040
stages {
@@ -589,7 +589,7 @@ pipeline {
589589
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
590590
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
591591
--label \"org.opencontainers.image.title=Code-server\" \
592-
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome.\" \
592+
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome. \" \
593593
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
594594
--provenance=true --sbom=true --builder=container --load \
595595
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
@@ -655,7 +655,7 @@ pipeline {
655655
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
656656
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
657657
--label \"org.opencontainers.image.title=Code-server\" \
658-
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome.\" \
658+
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome. \" \
659659
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
660660
--provenance=true --sbom=true --builder=container --load \
661661
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
@@ -714,7 +714,7 @@ pipeline {
714714
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
715715
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
716716
--label \"org.opencontainers.image.title=Code-server\" \
717-
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome.\" \
717+
--label \"org.opencontainers.image.description=[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome. \" \
718718
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
719719
--provenance=true --sbom=true --builder=container --load \
720720
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ git config --global user.email "email address"
7575

7676
How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed).
7777

78+
## Read-Only Operation
79+
80+
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
81+
82+
### Caveats
83+
84+
* `/tmp` must be mounted to tmpfs
85+
* `sudo` will not be available
86+
87+
## Non-Root Operation
88+
89+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
90+
91+
### Caveats
92+
93+
* `sudo` will not be available
94+
7895
## Usage
7996

8097
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -100,8 +117,9 @@ services:
100117
- SUDO_PASSWORD_HASH= #optional
101118
- PROXY_DOMAIN=code-server.my.domain #optional
102119
- DEFAULT_WORKSPACE=/config/workspace #optional
120+
- PWA_APPNAME=code-server #optional
103121
volumes:
104-
- /path/to/appdata/config:/config
122+
- /path/to/code-server/config:/config
105123
ports:
106124
- 8443:8443
107125
restart: unless-stopped
@@ -121,8 +139,9 @@ docker run -d \
121139
-e SUDO_PASSWORD_HASH= `#optional` \
122140
-e PROXY_DOMAIN=code-server.my.domain `#optional` \
123141
-e DEFAULT_WORKSPACE=/config/workspace `#optional` \
142+
-e PWA_APPNAME=code-server `#optional` \
124143
-p 8443:8443 \
125-
-v /path/to/appdata/config:/config \
144+
-v /path/to/code-server/config:/config \
126145
--restart unless-stopped \
127146
lscr.io/linuxserver/code-server:latest
128147
```
@@ -141,9 +160,12 @@ Containers are configured using parameters passed at runtime (such as those abov
141160
| `-e HASHED_PASSWORD=` | Optional web gui password, overrides `PASSWORD`, instructions on how to create it is below. |
142161
| `-e SUDO_PASSWORD=password` | If this optional variable is set, user will have sudo access in the code-server terminal with the specified password. |
143162
| `-e SUDO_PASSWORD_HASH=` | Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`. |
144-
| `-e PROXY_DOMAIN=code-server.my.domain` | If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#sub-domains) |
163+
| `-e PROXY_DOMAIN=code-server.my.domain` | If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/coder/code-server/blob/main/docs/guide.md#using-a-subdomain) |
145164
| `-e DEFAULT_WORKSPACE=/config/workspace` | If this optional variable is set, code-server will open this directory by default |
165+
| `-e PWA_APPNAME=code-server` | If this optional variable is set, the PWA app will the specified name. |
146166
| `-v /config` | Contains all relevant configuration files. |
167+
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
168+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
147169

148170
## Environment variables from files (Docker secrets)
149171

@@ -308,6 +330,10 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
308330
## Versions
309331

310332
* **10.08.25:** - Let server listen on both ipv4 and ipv6.
333+
* **03.06.25:** - Allow setting PWA name using env var `PWA_APPNAME`.
334+
* **13.10.24:** - Only chown config folder when change to ownership or new install is detected.
335+
* **09.10.24:** - Manage permissions in /config/.ssh according to file type
336+
* **19.08.24:** - Rebase to Ubuntu Noble.
311337
* **01.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)
312338
* **05.10.22:** - Install recommended deps to maintain parity with the older images.
313339
* **29.09.22:** - Rebase to jammy, switch to s6v3. Fix chown logic to skip `/config/workspace` contents.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ repo_vars:
2222
- CI_PORT='8443'
2323
- CI_SSL='false'
2424
- CI_DELAY='120'
25-
- CI_DOCKERENV='TZ=US/Pacific'
26-
- CI_AUTH='user:password'
25+
- CI_DOCKERENV=''
26+
- CI_AUTH=''
2727
- CI_WEBPATH=''

0 commit comments

Comments
 (0)