mirror of
https://github.com/linuxserver/docker-code-server
synced 2025-06-26 18:27:40 +00:00
Compare commits
54 Commits
v4.0.2-ls1
...
4.9.1-ls14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eda42a9475 | ||
|
|
cf0baaa19b | ||
|
|
5264ef2d2c | ||
|
|
f4ecdc1b24 | ||
|
|
8b4f777e07 | ||
|
|
59b707226c | ||
|
|
37469a7963 | ||
|
|
29d0831ced | ||
|
|
0030ddc1a2 | ||
|
|
f0f3e4d153 | ||
|
|
1d88b3ebc1 | ||
|
|
7654a42739 | ||
|
|
67840bad2e | ||
|
|
4d030635a1 | ||
|
|
40f7cb1b82 | ||
|
|
9d5210b14a | ||
|
|
2d0ebfad3b | ||
|
|
3223edf3a6 | ||
|
|
3be76d82ea | ||
|
|
ad7b7bfcf6 | ||
|
|
b55b470d99 | ||
|
|
300d1a22b3 | ||
|
|
9a3c62fd32 | ||
|
|
76b18b2e80 | ||
|
|
04cdba5c2b | ||
|
|
c2fa63001f | ||
|
|
d0c5345eda | ||
|
|
6722978e0a | ||
|
|
c55fc69b87 | ||
|
|
60465428f3 | ||
|
|
5851388cf4 | ||
|
|
0f0354ded4 | ||
|
|
d41e959c3f | ||
|
|
393806fd5e | ||
|
|
a87b1ef82d | ||
|
|
fd84ed821b | ||
|
|
a56e57ea9b | ||
|
|
302fdc380d | ||
|
|
20eda117c2 | ||
|
|
ad0b0c640a | ||
|
|
9a9f16ab3b | ||
|
|
67211293ab | ||
|
|
0b620f304c | ||
|
|
3c58da4f19 | ||
|
|
1cece84c50 | ||
|
|
69cf23d516 | ||
|
|
21f7dce24d | ||
|
|
da74981da3 | ||
|
|
e4e82382a0 | ||
|
|
e9822d8efc | ||
|
|
b087315336 | ||
|
|
29c861029a | ||
|
|
a1fa7f021e | ||
|
|
16909c6274 |
40
.github/ISSUE_TEMPLATE/issue.bug.md
vendored
40
.github/ISSUE_TEMPLATE/issue.bug.md
vendored
@@ -1,40 +0,0 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
|
||||
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
|
||||
|
||||
<!--- Provide a general summary of the bug in the Title above -->
|
||||
|
||||
------------------------------
|
||||
|
||||
## Expected Behavior
|
||||
<!--- Tell us what should happen -->
|
||||
|
||||
## Current Behavior
|
||||
<!--- Tell us what happens instead of the expected behavior -->
|
||||
|
||||
## Steps to Reproduce
|
||||
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
||||
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
4.
|
||||
|
||||
## Environment
|
||||
**OS:**
|
||||
**CPU architecture:** x86_64/arm32/arm64
|
||||
**How docker service was installed:**
|
||||
<!--- ie. from the official docker repo, from the distro repo, nas OS provided, etc. -->
|
||||
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
||||
|
||||
## Command used to create docker container (run/create/compose/screenshot)
|
||||
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
|
||||
|
||||
## Docker logs
|
||||
<!--- Provide a full docker log, output of "docker logs code-server" -->
|
||||
77
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file
77
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file
@@ -0,0 +1,77 @@
|
||||
# Based on the issue template
|
||||
name: Bug report
|
||||
description: Create a report to help us improve
|
||||
title: "[BUG] <title>"
|
||||
labels: [Bug]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: Please search to see if an issue already exists for the bug you encountered.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Current Behavior
|
||||
description: Tell us what happens instead of the expected behavior.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: Tell us what should happen.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps To Reproduce
|
||||
description: Steps to reproduce the behavior.
|
||||
placeholder: |
|
||||
1. In this environment...
|
||||
2. With this config...
|
||||
3. Run '...'
|
||||
4. See error...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Environment
|
||||
description: |
|
||||
examples:
|
||||
- **OS**: Ubuntu 20.04
|
||||
- **How docker service was installed**: distro's packagemanager
|
||||
value: |
|
||||
- OS:
|
||||
- How docker service was installed:
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: CPU architecture
|
||||
options:
|
||||
- x86-64
|
||||
- arm64
|
||||
- armhf
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Docker creation
|
||||
description: |
|
||||
Command used to create docker container
|
||||
Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container
|
||||
render: bash
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
description: |
|
||||
Provide a full docker log, output of "docker logs linuxserver.io"
|
||||
label: Container logs
|
||||
placeholder: |
|
||||
Output of `docker logs linuxserver.io`
|
||||
render: bash
|
||||
validations:
|
||||
required: true
|
||||
25
.github/ISSUE_TEMPLATE/issue.feature.md
vendored
25
.github/ISSUE_TEMPLATE/issue.feature.md
vendored
@@ -1,25 +0,0 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
|
||||
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
|
||||
|
||||
<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from --->
|
||||
<!--- If this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
||||
|
||||
<!--- Provide a general summary of the request in the Title above -->
|
||||
|
||||
------------------------------
|
||||
|
||||
## Desired Behavior
|
||||
<!--- Tell us what should happen -->
|
||||
|
||||
## Current Behavior
|
||||
<!--- Tell us what happens instead of the expected behavior -->
|
||||
|
||||
## Alternatives Considered
|
||||
<!--- Tell us what other options you have tried or considered -->
|
||||
31
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file
31
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
# Based on the issue template
|
||||
name: Feature request
|
||||
description: Suggest an idea for this project
|
||||
title: "[FEAT] <title>"
|
||||
labels: [enhancement]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is this a new feature request?
|
||||
description: Please search to see if a feature request already exists.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Wanted change
|
||||
description: Tell us what you want to happen.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Reason for change
|
||||
description: Justify your request, why do you want it, what is the benefit.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Proposed code change
|
||||
description: Do you have a potential code change in mind?
|
||||
validations:
|
||||
required: false
|
||||
12
.github/workflows/external_trigger.yml
vendored
12
.github/workflows/external_trigger.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
external-trigger-master:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/checkout@v3.1.0
|
||||
|
||||
- name: External Trigger
|
||||
if: github.ref == 'refs/heads/master'
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
fi
|
||||
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_CODE_SERVER_MASTER\". ****"
|
||||
echo "**** Retrieving external version ****"
|
||||
EXT_RELEASE=$(curl -sX GET https://registry.yarnpkg.com/code-server | jq -r '."dist-tags".latest' | sed 's|^|v|')
|
||||
EXT_RELEASE=$(curl -u ${{ secrets.CR_USER }}:${{ secrets.CR_PAT }} -sX GET https://api.github.com/repos/coder/code-server/releases/latest | jq -r '.tag_name' | sed 's|^v||')
|
||||
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
||||
echo "**** Can't retrieve external version, exiting ****"
|
||||
FAILURE_REASON="Can't retrieve external version for code-server branch master"
|
||||
@@ -48,8 +48,12 @@ jobs:
|
||||
| jq -r '.config.digest')
|
||||
image_info=$(curl -sL \
|
||||
--header "Authorization: Bearer ${token}" \
|
||||
"https://ghcr.io/v2/${image}/blobs/${digest}" \
|
||||
| jq -r '.container_config')
|
||||
"https://ghcr.io/v2/${image}/blobs/${digest}")
|
||||
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
|
||||
image_info=$(echo $image_info | jq -r '.config')
|
||||
else
|
||||
image_info=$(echo $image_info | jq -r '.container_config')
|
||||
fi
|
||||
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
|
||||
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
||||
if [ -z "${IMAGE_VERSION}" ]; then
|
||||
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
external-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/checkout@v3.1.0
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
|
||||
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
@@ -8,6 +8,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-code-server/blob/master/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-code-server/blob/master/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
|
||||
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-code-server/blob/master/.github/ISSUE_TEMPLATE/issue.bug.yml) or [feature](https://github.com/linuxserver/docker-code-server/blob/master/.github/ISSUE_TEMPLATE/issue.feature.yml) issue templates!'
|
||||
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-code-server/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
2
.github/workflows/package_trigger.yml
vendored
2
.github/workflows/package_trigger.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
package-trigger-master:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/checkout@v3.1.0
|
||||
|
||||
- name: Package Trigger
|
||||
if: github.ref == 'refs/heads/master'
|
||||
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
package-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/checkout@v3.1.0
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
- uses: actions/stale@v6.0.1
|
||||
with:
|
||||
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
||||
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
||||
|
||||
49
Dockerfile
49
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -8,53 +8,32 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="aptalca"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install node repo ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
gnupg && \
|
||||
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
|
||||
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
|
||||
> /etc/apt/sources.list.d/nodesource.list && \
|
||||
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
||||
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
|
||||
> /etc/apt/sources.list.d/yarn.list && \
|
||||
echo "**** install build dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
pkg-config \
|
||||
python3 && \
|
||||
echo "**** install runtime dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
jq \
|
||||
libatomic1 \
|
||||
nano \
|
||||
net-tools \
|
||||
nodejs \
|
||||
sudo \
|
||||
yarn && \
|
||||
netcat \
|
||||
sudo && \
|
||||
echo "**** install code-server ****" && \
|
||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||
CODE_RELEASE=$(curl -sX GET https://registry.yarnpkg.com/code-server \
|
||||
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
|
||||
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
|
||||
fi && \
|
||||
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
|
||||
npm config set python python3 && \
|
||||
yarn config set network-timeout 600000 -g && \
|
||||
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
|
||||
yarn cache clean && \
|
||||
mkdir -p /app/code-server && \
|
||||
curl -o \
|
||||
/tmp/code-server.tar.gz -L \
|
||||
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
|
||||
tar xf /tmp/code-server.tar.gz -C \
|
||||
/app/code-server --strip-components=1 && \
|
||||
echo "**** clean up ****" && \
|
||||
apt-get purge --auto-remove -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
libsecret-1-dev \
|
||||
pkg-config && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/config/* \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -8,53 +8,32 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="aptalca"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install node repo ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
gnupg && \
|
||||
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
|
||||
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
|
||||
> /etc/apt/sources.list.d/nodesource.list && \
|
||||
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
||||
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
|
||||
> /etc/apt/sources.list.d/yarn.list && \
|
||||
echo "**** install build dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
pkg-config \
|
||||
python3 && \
|
||||
echo "**** install runtime dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
jq \
|
||||
libatomic1 \
|
||||
nano \
|
||||
net-tools \
|
||||
nodejs \
|
||||
sudo \
|
||||
yarn && \
|
||||
netcat \
|
||||
sudo && \
|
||||
echo "**** install code-server ****" && \
|
||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||
CODE_RELEASE=$(curl -sX GET https://registry.yarnpkg.com/code-server \
|
||||
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
|
||||
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
|
||||
fi && \
|
||||
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
|
||||
npm config set python python3 && \
|
||||
yarn config set network-timeout 600000 -g && \
|
||||
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
|
||||
yarn cache clean && \
|
||||
mkdir -p /app/code-server && \
|
||||
curl -o \
|
||||
/tmp/code-server.tar.gz -L \
|
||||
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-arm64.tar.gz" && \
|
||||
tar xf /tmp/code-server.tar.gz -C \
|
||||
/app/code-server --strip-components=1 && \
|
||||
echo "**** clean up ****" && \
|
||||
apt-get purge --auto-remove -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
libsecret-1-dev \
|
||||
pkg-config && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/config/* \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -8,53 +8,32 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="aptalca"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install node repo ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
gnupg && \
|
||||
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
|
||||
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
|
||||
> /etc/apt/sources.list.d/nodesource.list && \
|
||||
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
||||
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
|
||||
> /etc/apt/sources.list.d/yarn.list && \
|
||||
echo "**** install build dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
pkg-config \
|
||||
python3 && \
|
||||
echo "**** install runtime dependencies ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
jq \
|
||||
libatomic1 \
|
||||
nano \
|
||||
net-tools \
|
||||
nodejs \
|
||||
sudo \
|
||||
yarn && \
|
||||
netcat \
|
||||
sudo && \
|
||||
echo "**** install code-server ****" && \
|
||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||
CODE_RELEASE=$(curl -sX GET https://registry.yarnpkg.com/code-server \
|
||||
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
|
||||
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
|
||||
fi && \
|
||||
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
|
||||
npm config set python python3 && \
|
||||
yarn config set network-timeout 600000 -g && \
|
||||
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
|
||||
yarn cache clean && \
|
||||
mkdir -p /app/code-server && \
|
||||
curl -o \
|
||||
/tmp/code-server.tar.gz -L \
|
||||
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-armv7l.tar.gz" && \
|
||||
tar xf /tmp/code-server.tar.gz -C \
|
||||
/app/code-server --strip-components=1 && \
|
||||
echo "**** clean up ****" && \
|
||||
apt-get purge --auto-remove -y \
|
||||
build-essential \
|
||||
libx11-dev \
|
||||
libxkbfile-dev \
|
||||
libsecret-1-dev \
|
||||
pkg-config && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/config/* \
|
||||
|
||||
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -56,7 +56,7 @@ pipeline {
|
||||
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
|
||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
|
||||
env.PULL_REQUEST = env.CHANGE_ID
|
||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml'
|
||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml'
|
||||
}
|
||||
script{
|
||||
env.LS_RELEASE_NUMBER = sh(
|
||||
@@ -104,7 +104,7 @@ pipeline {
|
||||
steps{
|
||||
script{
|
||||
env.EXT_RELEASE = sh(
|
||||
script: ''' curl -sX GET https://registry.yarnpkg.com/code-server | jq -r '."dist-tags".latest' | sed 's|^|v|' ''',
|
||||
script: ''' curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest | jq -r '.tag_name' | sed 's|^v||' ''',
|
||||
returnStdout: true).trim()
|
||||
env.RELEASE_LINK = 'custom_command'
|
||||
}
|
||||
@@ -277,7 +277,7 @@ pipeline {
|
||||
echo "Jenkinsfile is up to date."
|
||||
fi
|
||||
# Stage 2 - Delete old templates
|
||||
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md"
|
||||
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n.github/ISSUE_TEMPLATE/issue.bug.md\n.github/ISSUE_TEMPLATE/issue.feature.md"
|
||||
for i in ${OLD_TEMPLATES}; do
|
||||
if [[ -f "${i}" ]]; then
|
||||
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
|
||||
@@ -343,9 +343,11 @@ pipeline {
|
||||
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
|
||||
cd ${TEMPDIR}/unraid/templates/
|
||||
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
|
||||
echo "Image is on the ignore list, removing Unraid template"
|
||||
git rm unraid/${CONTAINER_NAME}.xml || :
|
||||
git commit -m 'Bot Removing Deprecated Unraid Template' || :
|
||||
echo "Image is on the ignore list, marking Unraid template as deprecated"
|
||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
||||
git add -u unraid/${CONTAINER_NAME}.xml
|
||||
git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
|
||||
git commit -m 'Bot Moving Deprecated Unraid Template' || :
|
||||
else
|
||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
||||
git add unraid/${CONTAINER_NAME}.xml
|
||||
@@ -708,7 +710,7 @@ pipeline {
|
||||
-e DO_REGION="ams3" \
|
||||
-e DO_BUCKET="lsio-ci" \
|
||||
-t ghcr.io/linuxserver/ci:latest \
|
||||
python /ci/ci.py'''
|
||||
python3 test_build.py'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
35
README.md
35
README.md
@@ -52,27 +52,17 @@ Find us at:
|
||||
|
||||
## Supported Architectures
|
||||
|
||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
|
||||
Simply pulling `lscr.io/linuxserver/code-server` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
Simply pulling `lscr.io/linuxserver/code-server:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
|
||||
The architectures supported by this image are:
|
||||
|
||||
| Architecture | Tag |
|
||||
| :----: | --- |
|
||||
| x86-64 | amd64-latest |
|
||||
| arm64 | arm64v8-latest |
|
||||
| armhf | arm32v7-latest |
|
||||
|
||||
## Version Tags
|
||||
|
||||
This image provides various versions that are available via tags. `latest` tag usually provides the latest stable version. Others are considered under development and caution must be exercised when using them.
|
||||
|
||||
| Tag | Description |
|
||||
| :----: | --- |
|
||||
| latest | Stable releases |
|
||||
| focal | DEPRECATED (no longer updated, `latest` is rebased on focal) - Stable releases, based on Ubuntu Focal |
|
||||
| development | DEPRECATED (no longer updated) - Prereleases from their GitHub |
|
||||
| Architecture | Available | Tag |
|
||||
| :----: | :----: | ---- |
|
||||
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||
| armhf| ✅ | arm32v7-\<version tag\> |
|
||||
|
||||
## Application Setup
|
||||
|
||||
@@ -100,7 +90,7 @@ Here are some example snippets to help you get started creating a container.
|
||||
version: "2.1"
|
||||
services:
|
||||
code-server:
|
||||
image: lscr.io/linuxserver/code-server
|
||||
image: lscr.io/linuxserver/code-server:latest
|
||||
container_name: code-server
|
||||
environment:
|
||||
- PUID=1000
|
||||
@@ -136,7 +126,7 @@ docker run -d \
|
||||
-p 8443:8443 \
|
||||
-v /path/to/appdata/config:/config \
|
||||
--restart unless-stopped \
|
||||
lscr.io/linuxserver/code-server
|
||||
lscr.io/linuxserver/code-server:latest
|
||||
```
|
||||
|
||||
## Parameters
|
||||
@@ -200,7 +190,7 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
|
||||
* container version number
|
||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' code-server`
|
||||
* image version number
|
||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/code-server`
|
||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/code-server:latest`
|
||||
|
||||
## Updating Info
|
||||
|
||||
@@ -218,7 +208,7 @@ Below are the instructions for updating containers:
|
||||
|
||||
### Via Docker Run
|
||||
|
||||
* Update the image: `docker pull lscr.io/linuxserver/code-server`
|
||||
* Update the image: `docker pull lscr.io/linuxserver/code-server:latest`
|
||||
* Stop the running container: `docker stop code-server`
|
||||
* Delete the container: `docker rm code-server`
|
||||
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
|
||||
@@ -266,6 +256,9 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **05.10.22:** - Install recommended deps to maintain parity with the older images.
|
||||
* **29.09.22:** - Rebase to jammy, switch to s6v3. Fix chown logic to skip `/config/workspace` contents.
|
||||
* **20.02.22:** - Install using the official tarballs.
|
||||
* **29.12.21:** - Add `install-extension` as a helper for mods to install extensions.
|
||||
* **06.12.21:** - Add `DEFAULT_WORKSPACE` env var.
|
||||
* **29.11.21:** - Rebase to Ubuntu focal.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# jenkins variables
|
||||
project_name: docker-code-server
|
||||
external_type: na
|
||||
custom_version_command: "curl -sX GET https://registry.yarnpkg.com/code-server | jq -r '.\"dist-tags\".latest' | sed 's|^|v|'"
|
||||
custom_version_command: "curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest | jq -r '.tag_name' | sed 's|^v||'"
|
||||
release_type: stable
|
||||
release_tag: latest
|
||||
ls_branch: master
|
||||
|
||||
@@ -1,190 +1,172 @@
|
||||
adduser3.118ubuntu2
|
||||
apt2.0.6
|
||||
apt-utils2.0.6
|
||||
base-files11ubuntu5.4
|
||||
base-passwd3.5.47
|
||||
bash5.0-6ubuntu1.1
|
||||
bsdutils1:2.34-0.1ubuntu9.1
|
||||
bzip21.0.8-2
|
||||
ca-certificates20210119~20.04.2
|
||||
coreutils8.30-3ubuntu2
|
||||
curl7.68.0-1ubuntu2.7
|
||||
dash0.5.10.2-6
|
||||
debconf1.5.73
|
||||
debianutils4.9.1
|
||||
diffutils1:3.7-3
|
||||
dirmngr2.2.19-3ubuntu2.1
|
||||
dpkg1.19.7ubuntu3
|
||||
e2fsprogs1.45.5-2ubuntu1
|
||||
fdisk2.34-0.1ubuntu9.1
|
||||
file1:5.38-4
|
||||
findutils4.7.0-1ubuntu1
|
||||
gcc-10-base10.3.0-1ubuntu1~20.04
|
||||
git1:2.25.1-1ubuntu3.2
|
||||
git-man1:2.25.1-1ubuntu3.2
|
||||
gnupg2.2.19-3ubuntu2.1
|
||||
gnupg-l10n2.2.19-3ubuntu2.1
|
||||
gnupg-utils2.2.19-3ubuntu2.1
|
||||
gpg2.2.19-3ubuntu2.1
|
||||
gpg-agent2.2.19-3ubuntu2.1
|
||||
gpgconf2.2.19-3ubuntu2.1
|
||||
gpgsm2.2.19-3ubuntu2.1
|
||||
gpgv2.2.19-3ubuntu2.1
|
||||
gpg-wks-client2.2.19-3ubuntu2.1
|
||||
gpg-wks-server2.2.19-3ubuntu2.1
|
||||
grep3.4-1
|
||||
gzip1.10-0ubuntu4
|
||||
hostname3.23
|
||||
init-system-helpers1.57
|
||||
jq1.6-1ubuntu0.20.04.1
|
||||
krb5-locales1.17-6ubuntu4.1
|
||||
less551-1ubuntu0.1
|
||||
libacl12.2.53-6
|
||||
libapt-pkg6.02.0.6
|
||||
libasn1-8-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libassuan02.5.3-7ubuntu2
|
||||
libattr11:2.4.48-5
|
||||
libaudit11:2.8.5-2ubuntu6
|
||||
libaudit-common1:2.8.5-2ubuntu6
|
||||
libblkid12.34-0.1ubuntu9.1
|
||||
libbrotli11.0.7-6ubuntu0.1
|
||||
libbsd00.10.0-1
|
||||
libbz2-1.01.0.8-2
|
||||
libc62.31-0ubuntu9.2
|
||||
libcap-ng00.7.9-2.1build1
|
||||
libc-bin2.31-0ubuntu9.2
|
||||
libcbor0.60.6.0-0ubuntu1
|
||||
libcom-err21.45.5-2ubuntu1
|
||||
libcrypt11:4.4.10-10ubuntu4
|
||||
libcurl3-gnutls7.68.0-1ubuntu2.7
|
||||
libcurl47.68.0-1ubuntu2.7
|
||||
libdb5.35.3.28+dfsg1-0.6ubuntu2
|
||||
libdebconfclient00.251ubuntu1
|
||||
libedit23.1-20191231-1
|
||||
adduser3.118ubuntu5
|
||||
apt2.4.8
|
||||
apt-utils2.4.8
|
||||
base-files12ubuntu4.2
|
||||
base-passwd3.5.52build1
|
||||
bash5.1-6ubuntu1
|
||||
bsdutils1:2.37.2-4ubuntu3
|
||||
ca-certificates20211016ubuntu0.22.04.1
|
||||
coreutils8.32-4.1ubuntu1
|
||||
curl7.81.0-1ubuntu1.7
|
||||
dash0.5.11+git20210903+057cd650a4ed-3build1
|
||||
debconf1.5.79ubuntu1
|
||||
debianutils5.5-1ubuntu2
|
||||
diffutils1:3.8-0ubuntu2
|
||||
dirmngr2.2.27-3ubuntu2.1
|
||||
dpkg1.21.1ubuntu2.1
|
||||
e2fsprogs1.46.5-2ubuntu1.1
|
||||
findutils4.8.0-1ubuntu3
|
||||
gcc-12-base12.1.0-2ubuntu1~22.04
|
||||
git1:2.34.1-1ubuntu1.6
|
||||
git-man1:2.34.1-1ubuntu1.6
|
||||
gnupg2.2.27-3ubuntu2.1
|
||||
gnupg-l10n2.2.27-3ubuntu2.1
|
||||
gnupg-utils2.2.27-3ubuntu2.1
|
||||
gpg2.2.27-3ubuntu2.1
|
||||
gpg-agent2.2.27-3ubuntu2.1
|
||||
gpgconf2.2.27-3ubuntu2.1
|
||||
gpgsm2.2.27-3ubuntu2.1
|
||||
gpgv2.2.27-3ubuntu2.1
|
||||
gpg-wks-client2.2.27-3ubuntu2.1
|
||||
gpg-wks-server2.2.27-3ubuntu2.1
|
||||
grep3.7-1build1
|
||||
gzip1.10-4ubuntu4.1
|
||||
hostname3.23ubuntu2
|
||||
init-system-helpers1.62
|
||||
jq1.6-2.1ubuntu3
|
||||
less590-1build1
|
||||
libacl12.3.1-1
|
||||
libapt-pkg6.02.4.8
|
||||
libassuan02.5.5-1build1
|
||||
libatomic112.1.0-2ubuntu1~22.04
|
||||
libattr11:2.5.1-1build1
|
||||
libaudit11:3.0.7-1build1
|
||||
libaudit-common1:3.0.7-1build1
|
||||
libblkid12.37.2-4ubuntu3
|
||||
libbrotli11.0.9-2build6
|
||||
libbsd00.11.5-1
|
||||
libbz2-1.01.0.8-5build1
|
||||
libc62.35-0ubuntu3.1
|
||||
libcap21:2.44-1build3
|
||||
libcap-ng00.7.9-2.2build3
|
||||
libc-bin2.35-0ubuntu3.1
|
||||
libcbor0.80.8.0-2ubuntu1
|
||||
libcom-err21.46.5-2ubuntu1.1
|
||||
libcrypt11:4.4.27-1
|
||||
libcurl3-gnutls7.81.0-1ubuntu1.7
|
||||
libcurl47.81.0-1ubuntu1.7
|
||||
libdb5.35.3.28+dfsg1-0.8ubuntu3
|
||||
libdebconfclient00.261ubuntu1
|
||||
libedit23.1-20210910-1build1
|
||||
liberror-perl0.17029-1
|
||||
libexpat12.2.9-1build1
|
||||
libext2fs21.45.5-2ubuntu1
|
||||
libfdisk12.34-0.1ubuntu9.1
|
||||
libffi73.3-4
|
||||
libfido2-11.3.1-1ubuntu2
|
||||
libgcc-s110.3.0-1ubuntu1~20.04
|
||||
libgcrypt201.8.5-5ubuntu1.1
|
||||
libgdbm61.18.1-5
|
||||
libgdbm-compat41.18.1-5
|
||||
libgmp102:6.2.0+dfsg-4
|
||||
libgnutls303.6.13-2ubuntu1.6
|
||||
libgpg-error01.37-1
|
||||
libgssapi3-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libgssapi-krb5-21.17-6ubuntu4.1
|
||||
libhcrypto4-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libheimbase1-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libheimntlm0-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libhogweed53.5.1+really3.5.1-2ubuntu0.2
|
||||
libhx509-5-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libidn2-02.2.0-2
|
||||
libjq11.6-1ubuntu0.20.04.1
|
||||
libk5crypto31.17-6ubuntu4.1
|
||||
libkeyutils11.6-6ubuntu1
|
||||
libkrb5-26-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libkrb5-31.17-6ubuntu4.1
|
||||
libkrb5support01.17-6ubuntu4.1
|
||||
libksba81.3.5-2
|
||||
libldap-2.4-22.4.49+dfsg-2ubuntu1.8
|
||||
libldap-common2.4.49+dfsg-2ubuntu1.8
|
||||
liblz4-11.9.2-2ubuntu0.20.04.1
|
||||
liblzma55.2.4-1ubuntu1
|
||||
libmagic11:5.38-4
|
||||
libmagic-mgc1:5.38-4
|
||||
libmount12.34-0.1ubuntu9.1
|
||||
libmpdec22.4.2-3
|
||||
libncurses66.2-0ubuntu2
|
||||
libncursesw66.2-0ubuntu2
|
||||
libnettle73.5.1+really3.5.1-2ubuntu0.2
|
||||
libnghttp2-141.40.0-1build1
|
||||
libnpth01.6-1
|
||||
libonig56.9.4-1
|
||||
libp11-kit00.23.20-1ubuntu0.1
|
||||
libpam0g1.3.1-5ubuntu4.3
|
||||
libpam-modules1.3.1-5ubuntu4.3
|
||||
libpam-modules-bin1.3.1-5ubuntu4.3
|
||||
libpam-runtime1.3.1-5ubuntu4.3
|
||||
libpcre2-8-010.34-7
|
||||
libpcre32:8.39-12build1
|
||||
libperl5.305.30.0-9ubuntu0.2
|
||||
libprocps82:3.3.16-1ubuntu2.3
|
||||
libpsl50.21.0-1ubuntu1
|
||||
libpython3.8-minimal3.8.10-0ubuntu1~20.04.2
|
||||
libpython3.8-stdlib3.8.10-0ubuntu1~20.04.2
|
||||
libpython3-stdlib3.8.2-0ubuntu2
|
||||
libreadline88.0-4
|
||||
libroken18-heimdal7.7.0+dfsg-1ubuntu1
|
||||
librtmp12.4+20151223.gitfa8646d.1-2build1
|
||||
libsasl2-22.1.27+dfsg-2
|
||||
libsasl2-modules2.1.27+dfsg-2
|
||||
libsasl2-modules-db2.1.27+dfsg-2
|
||||
libseccomp22.5.1-1ubuntu1~20.04.2
|
||||
libselinux13.0-1build2
|
||||
libsemanage13.0-1build2
|
||||
libsemanage-common3.0-1build2
|
||||
libsepol13.0-1
|
||||
libsmartcols12.34-0.1ubuntu9.1
|
||||
libsqlite3-03.31.1-4ubuntu0.2
|
||||
libss21.45.5-2ubuntu1
|
||||
libssh-40.9.3-2ubuntu2.2
|
||||
libssl1.11.1.1f-1ubuntu2.10
|
||||
libstdc++610.3.0-1ubuntu1~20.04
|
||||
libsystemd0245.4-4ubuntu3.15
|
||||
libtasn1-64.16.0-2
|
||||
libtinfo66.2-0ubuntu2
|
||||
libudev1245.4-4ubuntu3.15
|
||||
libunistring20.9.10-2
|
||||
libuuid12.34-0.1ubuntu9.1
|
||||
libwind0-heimdal7.7.0+dfsg-1ubuntu1
|
||||
libx11-62:1.6.9-2ubuntu1.2
|
||||
libx11-data2:1.6.9-2ubuntu1.2
|
||||
libxau61:1.0.9-0ubuntu1
|
||||
libxcb11.14-2
|
||||
libxdmcp61:1.1.3-0ubuntu1
|
||||
libxext62:1.3.4-0ubuntu1
|
||||
libxmuu12:1.1.3-0ubuntu1
|
||||
libzstd11.4.4+dfsg-3ubuntu0.1
|
||||
locales2.31-0ubuntu9.2
|
||||
login1:4.8.1-1ubuntu5.20.04.1
|
||||
logsave1.45.5-2ubuntu1
|
||||
lsb-base11.1.0ubuntu2
|
||||
mawk1.3.4.20200120-2
|
||||
mime-support3.64ubuntu1
|
||||
mount2.34-0.1ubuntu9.1
|
||||
nano4.8-1ubuntu1
|
||||
ncurses-base6.2-0ubuntu2
|
||||
ncurses-bin6.2-0ubuntu2
|
||||
netbase6.1
|
||||
net-tools1.60+git20180626.aebd88e-1ubuntu1
|
||||
nodejs14.19.0-deb-1nodesource1
|
||||
openssh-client1:8.2p1-4ubuntu0.4
|
||||
openssl1.1.1f-1ubuntu2.10
|
||||
passwd1:4.8.1-1ubuntu5.20.04.1
|
||||
patch2.7.6-6
|
||||
perl5.30.0-9ubuntu0.2
|
||||
perl-base5.30.0-9ubuntu0.2
|
||||
perl-modules-5.305.30.0-9ubuntu0.2
|
||||
pinentry-curses1.1.0-3build1
|
||||
procps2:3.3.16-1ubuntu2.3
|
||||
publicsuffix20200303.0012-1
|
||||
python33.8.2-0ubuntu2
|
||||
python3.83.8.10-0ubuntu1~20.04.2
|
||||
python3.8-minimal3.8.10-0ubuntu1~20.04.2
|
||||
python3-minimal3.8.2-0ubuntu2
|
||||
readline-common8.0-4
|
||||
sed4.7-1
|
||||
sensible-utils0.0.12+nmu1
|
||||
sudo1.8.31-1ubuntu1.2
|
||||
sysvinit-utils2.96-2.1ubuntu1
|
||||
tar1.30+dfsg-7ubuntu0.20.04.1
|
||||
tzdata2021e-0ubuntu0.20.04
|
||||
ubuntu-keyring2020.02.11.4
|
||||
util-linux2.34-0.1ubuntu9.1
|
||||
xauth1:1.1-0ubuntu1
|
||||
xz-utils5.2.4-1ubuntu1
|
||||
yarn1.22.17-1
|
||||
zlib1g1:1.2.11.dfsg-2ubuntu1.2
|
||||
libexpat12.4.7-1ubuntu0.2
|
||||
libext2fs21.46.5-2ubuntu1.1
|
||||
libffi83.4.2-4
|
||||
libfido2-11.10.0-1
|
||||
libgcc-s112.1.0-2ubuntu1~22.04
|
||||
libgcrypt201.9.4-3ubuntu3
|
||||
libgdbm61.23-1
|
||||
libgdbm-compat41.23-1
|
||||
libgmp102:6.2.1+dfsg-3ubuntu1
|
||||
libgnutls303.7.3-4ubuntu1.1
|
||||
libgpg-error01.43-3
|
||||
libgssapi-krb5-21.19.2-2
|
||||
libhogweed63.7.3-1build2
|
||||
libidn2-02.3.2-2build1
|
||||
libjq11.6-2.1ubuntu3
|
||||
libk5crypto31.19.2-2
|
||||
libkeyutils11.6.1-2ubuntu3
|
||||
libkrb5-31.19.2-2
|
||||
libkrb5support01.19.2-2
|
||||
libksba81.6.0-2ubuntu0.2
|
||||
libldap-2.5-02.5.13+dfsg-0ubuntu0.22.04.1
|
||||
libldap-common2.5.13+dfsg-0ubuntu0.22.04.1
|
||||
liblz4-11.9.3-2build2
|
||||
liblzma55.2.5-2ubuntu1
|
||||
libmd01.0.4-1build1
|
||||
libmount12.37.2-4ubuntu3
|
||||
libncurses66.3-2
|
||||
libncursesw66.3-2
|
||||
libnettle83.7.3-1build2
|
||||
libnghttp2-141.43.0-1build3
|
||||
libnpth01.6-3build2
|
||||
libnsl21.3.0-2build2
|
||||
libonig56.9.7.1-2build1
|
||||
libp11-kit00.24.0-6build1
|
||||
libpam0g1.4.0-11ubuntu2
|
||||
libpam-modules1.4.0-11ubuntu2
|
||||
libpam-modules-bin1.4.0-11ubuntu2
|
||||
libpam-runtime1.4.0-11ubuntu2
|
||||
libpcre2-8-010.39-3ubuntu0.1
|
||||
libpcre32:8.39-13ubuntu0.22.04.1
|
||||
libperl5.345.34.0-3ubuntu1.1
|
||||
libprocps82:3.3.17-6ubuntu2
|
||||
libpsl50.21.0-1.2build2
|
||||
libreadline88.1.2-1
|
||||
librtmp12.4+20151223.gitfa8646d.1-2build4
|
||||
libsasl2-22.1.27+dfsg2-3ubuntu1.1
|
||||
libsasl2-modules2.1.27+dfsg2-3ubuntu1.1
|
||||
libsasl2-modules-db2.1.27+dfsg2-3ubuntu1.1
|
||||
libseccomp22.5.3-2ubuntu2
|
||||
libselinux13.3-1build2
|
||||
libsemanage23.3-1build2
|
||||
libsemanage-common3.3-1build2
|
||||
libsepol23.3-1build1
|
||||
libsmartcols12.37.2-4ubuntu3
|
||||
libsqlite3-03.37.2-2ubuntu0.1
|
||||
libss21.46.5-2ubuntu1.1
|
||||
libssh-40.9.6-2build1
|
||||
libssl33.0.2-0ubuntu1.7
|
||||
libstdc++612.1.0-2ubuntu1~22.04
|
||||
libsystemd0249.11-0ubuntu3.6
|
||||
libtasn1-64.18.0-4build1
|
||||
libtinfo66.3-2
|
||||
libtirpc31.3.2-2ubuntu0.1
|
||||
libtirpc-common1.3.2-2ubuntu0.1
|
||||
libudev1249.11-0ubuntu3.6
|
||||
libunistring21.0-1
|
||||
libuuid12.37.2-4ubuntu3
|
||||
libx11-62:1.7.5-1
|
||||
libx11-data2:1.7.5-1
|
||||
libxau61:1.0.9-1build5
|
||||
libxcb11.14-3ubuntu3
|
||||
libxdmcp61:1.1.3-0ubuntu5
|
||||
libxext62:1.3.4-1build1
|
||||
libxmuu12:1.1.3-3
|
||||
libxxhash00.8.1-1
|
||||
libzstd11.4.8+dfsg-3build1
|
||||
locales2.35-0ubuntu3.1
|
||||
login1:4.8.1-2ubuntu2.1
|
||||
logsave1.46.5-2ubuntu1.1
|
||||
lsb-base11.1.0ubuntu4
|
||||
mawk1.3.4.20200120-3
|
||||
mount2.37.2-4ubuntu3
|
||||
nano6.2-1
|
||||
ncurses-base6.3-2
|
||||
ncurses-bin6.3-2
|
||||
netbase6.3
|
||||
netcat1.218-4ubuntu1
|
||||
netcat-openbsd1.218-4ubuntu1
|
||||
net-tools1.60+git20181103.0eebece-1ubuntu5
|
||||
openssh-client1:8.9p1-3ubuntu0.1
|
||||
openssl3.0.2-0ubuntu1.7
|
||||
passwd1:4.8.1-2ubuntu2.1
|
||||
patch2.7.6-7build2
|
||||
perl5.34.0-3ubuntu1.1
|
||||
perl-base5.34.0-3ubuntu1.1
|
||||
perl-modules-5.345.34.0-3ubuntu1.1
|
||||
pinentry-curses1.1.1-1build2
|
||||
procps2:3.3.17-6ubuntu2
|
||||
publicsuffix20211207.1025-1
|
||||
readline-common8.1.2-1
|
||||
sed4.8-1ubuntu2
|
||||
sensible-utils0.0.17
|
||||
sudo1.9.9-1ubuntu2.2
|
||||
sysvinit-utils3.01-1ubuntu1
|
||||
tar1.34+dfsg-1build3
|
||||
tzdata2022g-0ubuntu0.22.04.1
|
||||
ubuntu-keyring2021.03.26
|
||||
usrmerge25ubuntu2
|
||||
util-linux2.37.2-4ubuntu3
|
||||
xauth1:1.1-1build2
|
||||
zlib1g1:1.2.11.dfsg-2ubuntu9.2
|
||||
|
||||
@@ -26,11 +26,9 @@ available_architectures:
|
||||
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
|
||||
|
||||
# development version
|
||||
development_versions: true
|
||||
development_versions: false
|
||||
development_versions_items:
|
||||
- { tag: "latest", desc: "Stable releases" }
|
||||
- { tag: "focal", desc: "DEPRECATED (no longer updated, `latest` is rebased on focal) - Stable releases, based on Ubuntu Focal" }
|
||||
- { tag: "development", desc: "DEPRECATED (no longer updated) - Prereleases from their GitHub" }
|
||||
|
||||
# container parameters
|
||||
common_param_env_vars_enabled: true
|
||||
@@ -77,6 +75,9 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "05.10.22:", desc: "Install recommended deps to maintain parity with the older images." }
|
||||
- { date: "29.09.22:", desc: "Rebase to jammy, switch to s6v3. Fix chown logic to skip `/config/workspace` contents." }
|
||||
- { date: "20.02.22:", desc: "Install using the official tarballs." }
|
||||
- { date: "29.12.21:", desc: "Add `install-extension` as a helper for mods to install extensions." }
|
||||
- { date: "06.12.21:", desc: "Add `DEFAULT_WORKSPACE` env var." }
|
||||
- { date: "29.11.21:", desc: "Rebase to Ubuntu focal." }
|
||||
|
||||
23
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-code-server/run
Normal file → Executable file
23
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-code-server/run
Normal file → Executable file
@@ -22,21 +22,10 @@ fi
|
||||
[[ ! -f /config/.profile ]] && \
|
||||
cp /root/.profile /config/.profile
|
||||
|
||||
# permissions
|
||||
if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
|
||||
CORES=$(nproc --all)
|
||||
|
||||
# Split workload between config and workspace
|
||||
echo "setting permissions::configuration"
|
||||
find /config -path /config/workspace -prune -false -o -type d -print0 | \
|
||||
xargs --null -r --max-args=1 --max-procs=$((CORES*2*8)) \
|
||||
chown -R abc:abc
|
||||
|
||||
echo "setting permissions::workspace"
|
||||
chown abc:abc /config/workspace
|
||||
else
|
||||
# Set permissions on data mount
|
||||
# do not decend into the workspace
|
||||
chown -R abc:abc "$(ls /config -I workspace)"
|
||||
chown abc:abc /config/workspace
|
||||
# fix permissions (ignore contents of /config/workspace)
|
||||
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
|
||||
chown abc:abc /config/workspace
|
||||
chmod 700 /config/.ssh
|
||||
if [ -n "$(ls -A /config/.ssh)" ]; then
|
||||
chmod 600 /config/.ssh/*
|
||||
fi
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-code-server/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-code-server/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-code-server/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-code-server/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-code-server/run
|
||||
@@ -0,0 +1 @@
|
||||
3
|
||||
26
root/etc/s6-overlay/s6-rc.d/svc-code-server/run
Executable file
26
root/etc/s6-overlay/s6-rc.d/svc-code-server/run
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -n "${PASSWORD}" ] || [ -n "${HASHED_PASSWORD}" ]; then
|
||||
AUTH="password"
|
||||
else
|
||||
AUTH="none"
|
||||
echo "starting with no password"
|
||||
fi
|
||||
|
||||
if [ -z ${PROXY_DOMAIN+x} ]; then
|
||||
PROXY_DOMAIN_ARG=""
|
||||
else
|
||||
PROXY_DOMAIN_ARG="--proxy-domain=${PROXY_DOMAIN}"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 8443" \
|
||||
s6-setuidgid abc \
|
||||
/app/code-server/bin/code-server \
|
||||
--bind-addr 0.0.0.0:8443 \
|
||||
--user-data-dir /config/data \
|
||||
--extensions-dir /config/extensions \
|
||||
--disable-telemetry \
|
||||
--auth "${AUTH}" \
|
||||
"${PROXY_DOMAIN_ARG}" \
|
||||
"${DEFAULT_WORKSPACE:-/config/workspace}"
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-code-server/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-code-server/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -n "${PASSWORD}" ] || [ -n "${HASHED_PASSWORD}" ]; then
|
||||
AUTH="password"
|
||||
else
|
||||
AUTH="none"
|
||||
echo "starting with no password"
|
||||
fi
|
||||
|
||||
if [ -z ${PROXY_DOMAIN+x} ]; then
|
||||
PROXY_DOMAIN_ARG=""
|
||||
else
|
||||
PROXY_DOMAIN_ARG="--proxy-domain=${PROXY_DOMAIN}"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc \
|
||||
/usr/local/bin/code-server \
|
||||
--bind-addr 0.0.0.0:8443 \
|
||||
--user-data-dir /config/data \
|
||||
--extensions-dir /config/extensions \
|
||||
--disable-telemetry \
|
||||
--auth "${AUTH}" \
|
||||
"${PROXY_DOMAIN_ARG}" \
|
||||
"${DEFAULT_WORKSPACE:-/config/workspace}"
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
_install=(/usr/local/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
|
||||
_install=(/app/code-server/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
|
||||
|
||||
if [ "$(whoami)" == "abc" ]; then
|
||||
"${_install[@]}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user