Skip to content

Commit b3fdb57

Browse files
committed
docker/debian: Add gcc++13 to devtools
Signed-off-by: Ryan Northey <[email protected]>
1 parent 69127c8 commit b3fdb57

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

docker/linux/debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bullseye-slim@sha256:779034981fec838da124ff6ab9211499ba5d4e769dabdfd6c42c6ae2553b9a3b AS worker-base
1+
FROM debian:trixie-slim@sha256:779034981fec838da124ff6ab9211499ba5d4e769dabdfd6c42c6ae2553b9a3b AS worker-base
22
ARG DEBIAN_FRONTEND=noninteractive
33
SHELL ["/bin/bash", "-ec"]
44
RUN --mount=type=tmpfs,target=/var/cache/apt \

docker/linux/debian/fun.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set -o pipefail
55
# shellcheck source=docker/linux/common_fun.sh
66
. ./common_fun.sh
77

8-
98
# Mobile and repo variables
109
APT_KEYS_MOBILE=(
1110
"$APT_KEY_AZUL")
@@ -26,6 +25,7 @@ DEBIAN_PACKAGES=(
2625
docker-ce-cli
2726
doxygen
2827
expect
28+
g++-13
2929
gdb
3030
git
3131
graphviz
@@ -45,7 +45,8 @@ DEBIAN_PACKAGES=(
4545
tshark
4646
unzip
4747
xz-utils
48-
zip)
48+
zip
49+
yq)
4950
DOCKER_PACKAGES=(
5051
containerd.io
5152
docker-buildx-plugin
@@ -58,7 +59,8 @@ DOCKER_PACKAGES=(
5859
jq
5960
netcat-openbsd
6061
skopeo
61-
whois)
62+
whois
63+
yq)
6264
GROUP_ID="${GROUP_ID:-${USER_ID:-1000}}"
6365
USER_ID="${USER_ID:-1000}"
6466
USER_NAME="${USER_NAME:-envoybuild}"
@@ -161,8 +163,8 @@ install_devel () {
161163
LSB_RELEASE="$(lsb_release -cs)"
162164
APT_REPOS=(
163165
"[arch=${DEB_ARCH}] https://download.docker.com/linux/debian ${LSB_RELEASE} stable"
164-
"https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/ /")
165-
166+
"https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/ /"
167+
"http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu ${LSB_RELEASE} main")
166168
apt-get -qq install -y --no-install-recommends wget gnupg2 gpg-agent software-properties-common
167169
add_apt_key "${APT_KEY_DOCKER}"
168170
add_apt_k8s_key "${APT_KEY_K8S}"
@@ -172,6 +174,10 @@ install_devel () {
172174
apt-get -qq update
173175
apt-get -qq upgrade -y
174176

177+
apt_install "${DEV_PACKAGES[@]}"
178+
apt-get -qq dist-upgrade -y
179+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 1
180+
175181
install_build
176182

177183
echo "Development tools installation completed - compilers provided by toolchains"
@@ -197,16 +203,14 @@ install_docker () {
197203
fi
198204
LSB_RELEASE="$(lsb_release -cs)"
199205
APT_REPOS=(
200-
"http://archive.debian.org/debian bullseye-backports main"
201206
"[arch=${DEB_ARCH}] https://download.docker.com/linux/debian ${LSB_RELEASE} stable"
202-
"https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/ /")
207+
"https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/ /")
203208
apt-get -qq install -y --no-install-recommends wget gnupg2 gpg-agent software-properties-common
204209
add_apt_key "${APT_KEY_DOCKER}"
205210
add_apt_k8s_key "${APT_KEY_K8S}"
206211
add_apt_repos "${APT_REPOS[@]}"
207212
apt-get -qq update
208213
apt-get -qq install -y --no-install-recommends "${DOCKER_PACKAGES[@]}"
209-
apt-get -qq install -y --no-install-recommends -t bullseye-backports curl yq
210214
apt-get -qq update
211215
apt-get -qq upgrade -y
212216
}

0 commit comments

Comments
 (0)