Skip to content

Commit 6675483

Browse files
authored
Merge pull request #91 from linuxserver/master-focal
Rebase to focal
2 parents fb68e8e + f6bd33a commit 6675483

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

Dockerfile

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

33
# set version label
44
ARG BUILD_DATE
@@ -16,7 +16,7 @@ RUN \
1616
apt-get install -y \
1717
gnupg && \
1818
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19-
echo 'deb https://deb.nodesource.com/node_14.x bionic main' \
19+
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
2020
> /etc/apt/sources.list.d/nodesource.list && \
2121
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
2222
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
@@ -27,8 +27,8 @@ RUN \
2727
build-essential \
2828
libx11-dev \
2929
libxkbfile-dev \
30-
libsecret-1-dev \
31-
pkg-config && \
30+
pkg-config \
31+
python3 && \
3232
echo "**** install runtime dependencies ****" && \
3333
apt-get install -y \
3434
git \
@@ -44,6 +44,7 @@ RUN \
4444
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47+
npm config set python python3 && \
4748
yarn config set network-timeout 600000 -g && \
4849
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4950
yarn cache clean && \
@@ -56,6 +57,7 @@ RUN \
5657
pkg-config && \
5758
apt-get clean && \
5859
rm -rf \
60+
/config/* \
5961
/tmp/* \
6062
/var/lib/apt/lists/* \
6163
/var/tmp/*

Dockerfile.aarch64

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

33
# set version label
44
ARG BUILD_DATE
@@ -16,7 +16,7 @@ RUN \
1616
apt-get install -y \
1717
gnupg && \
1818
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19-
echo 'deb https://deb.nodesource.com/node_14.x bionic main' \
19+
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
2020
> /etc/apt/sources.list.d/nodesource.list && \
2121
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
2222
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
@@ -27,8 +27,8 @@ RUN \
2727
build-essential \
2828
libx11-dev \
2929
libxkbfile-dev \
30-
libsecret-1-dev \
31-
pkg-config && \
30+
pkg-config \
31+
python3 && \
3232
echo "**** install runtime dependencies ****" && \
3333
apt-get install -y \
3434
git \
@@ -44,6 +44,7 @@ RUN \
4444
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47+
npm config set python python3 && \
4748
yarn config set network-timeout 600000 -g && \
4849
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4950
yarn cache clean && \
@@ -56,6 +57,7 @@ RUN \
5657
pkg-config && \
5758
apt-get clean && \
5859
rm -rf \
60+
/config/* \
5961
/tmp/* \
6062
/var/lib/apt/lists/* \
6163
/var/tmp/*

Dockerfile.armhf

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

33
# set version label
44
ARG BUILD_DATE
@@ -16,7 +16,7 @@ RUN \
1616
apt-get install -y \
1717
gnupg && \
1818
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19-
echo 'deb https://deb.nodesource.com/node_14.x bionic main' \
19+
echo 'deb https://deb.nodesource.com/node_14.x focal main' \
2020
> /etc/apt/sources.list.d/nodesource.list && \
2121
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
2222
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
@@ -27,8 +27,8 @@ RUN \
2727
build-essential \
2828
libx11-dev \
2929
libxkbfile-dev \
30-
libsecret-1-dev \
31-
pkg-config && \
30+
pkg-config \
31+
python3 && \
3232
echo "**** install runtime dependencies ****" && \
3333
apt-get install -y \
3434
git \
@@ -44,6 +44,7 @@ RUN \
4444
| jq -r '."dist-tags".latest' | sed 's|^|v|'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47+
npm config set python python3 && \
4748
yarn config set network-timeout 600000 -g && \
4849
yarn --production --verbose --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4950
yarn cache clean && \
@@ -56,6 +57,7 @@ RUN \
5657
pkg-config && \
5758
apt-get clean && \
5859
rm -rf \
60+
/config/* \
5961
/tmp/* \
6062
/var/lib/apt/lists/* \
6163
/var/tmp/*

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This image provides various versions that are available via tags. `latest` tag u
7070
| Tag | Description |
7171
| :----: | --- |
7272
| latest | Stable releases |
73-
| focal | Stable releases, based on Ubuntu Focal |
73+
| focal | DEPRECATED (no longer updated, `latest` is rebased on focal) - Stable releases, based on Ubuntu Focal |
7474
| development | DEPRECATED (no longer updated) - Prereleases from their GitHub |
7575

7676
## Application Setup
@@ -262,6 +262,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
262262

263263
## Versions
264264

265+
* **29.11.21:** - Rebase to Ubuntu focal.
265266
* **16.09.21:** - Fix slow `chown` on large workspace (contents of workspace folder no longer chowned).
266267
* **11.07.21:** - Bump node to 14 to fix builds
267268
* **08.05.21:** - Fix doc link

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ available_architectures:
2929
development_versions: true
3030
development_versions_items:
3131
- { tag: "latest", desc: "Stable releases" }
32-
- { tag: "focal", desc: "Stable releases, based on Ubuntu Focal" }
32+
- { tag: "focal", desc: "DEPRECATED (no longer updated, `latest` is rebased on focal) - Stable releases, based on Ubuntu Focal" }
3333
- { tag: "development", desc: "DEPRECATED (no longer updated) - Prereleases from their GitHub" }
3434

3535
# container parameters
@@ -76,6 +76,7 @@ app_setup_block: |
7676
7777
# changelog
7878
changelogs:
79+
- { date: "29.11.21:", desc: "Rebase to Ubuntu focal." }
7980
- { date: "16.09.21:", desc: "Fix slow `chown` on large workspace (contents of workspace folder no longer chowned)." }
8081
- { date: "11.07.21:", desc: "Bump node to 14 to fix builds" }
8182
- { date: "08.05.21:", desc: "Fix doc link" }

root/etc/cont-init.d/30-config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if [ -n "${SUDO_PASSWORD}" ] || [ -n "${SUDO_PASSWORD_HASH}" ]; then
1717
fi
1818
fi
1919

20+
[[ ! -f /config/.bashrc ]] && \
21+
cp /root/.bashrc /config/.bashrc
22+
[[ ! -f /config/.profile ]] && \
23+
cp /root/.profile /config/.profile
24+
2025
# permissions
2126
if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
2227
CORES=$(nproc --all)

0 commit comments

Comments
 (0)