Skip to content

Commit 52001d2

Browse files
committed
Upgrade Ubuntu container to 22.04
1 parent 7761e1e commit 52001d2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docker/linux/common_fun.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ install_build () {
125125
setup_tcpdump () {
126126
# Setup tcpdump for non-root.
127127
groupadd -r pcap
128-
chgrp pcap /usr/sbin/tcpdump
129-
chmod 750 /usr/sbin/tcpdump
130-
setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
128+
chgrp pcap /usr/bin/tcpdump
129+
chmod 750 /usr/bin/tcpdump
130+
setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump
131131
}
132132

133133
## PPCLE64 FUN

docker/linux/ubuntu/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba as env
1+
FROM ubuntu:jammy@sha256:c9cf959fd83770dfdefd8fb42cfef0761432af36a764c077aed54bbc5bb25368 as env
22
ARG ANDROID_CLI_TOOLS=https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip \
33
APT_KEY_TOOLCHAIN=60C317803A41BA51845E371A1E9377A2BA9EF27F \
44
APT_KEY_AZUL=0xB1998361219BD9C9 \
@@ -79,8 +79,8 @@ COPY \
7979
FROM full as cmake
8080
RUN --mount=type=tmpfs,target=/var/cache/apt \
8181
--mount=type=tmpfs,target=/var/lib/apt/lists \
82-
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \
83-
&& echo "deb https://apt.kitware.com/ubuntu/ focal main" >> /etc/apt/sources.list \
82+
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc -o /etc/apt/trusted.gpg.d/kitware.asc \
83+
&& echo "deb https://apt.kitware.com/ubuntu/ jammy main" >> /etc/apt/sources.list \
8484
&& apt-get -qq update -y \
8585
&& apt-get -qq install --no-install-recommends cmake ninja-build
8686

docker/linux/ubuntu/fun.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ add_ubuntu_keys () {
9494

9595
add_apt_key () {
9696
apt-get update -y
97-
wget -q -O - "$1" | apt-key add -
97+
wget -q -O - "$1" > /etc/apt/trusted.gpg.d/"$2"
9898
}
9999

100100
add_apt_k8s_key () {
@@ -174,7 +174,7 @@ install () {
174174
if [[ "$ARCH" == "ppc64le" ]]; then
175175
install_ppc64le_bazel
176176
fi
177-
add_apt_key "${APT_KEY_DOCKER}"
177+
add_apt_key "${APT_KEY_DOCKER}" "docker.asc"
178178
add_apt_k8s_key "${APT_KEY_K8S}"
179179
add_apt_repos "${APT_REPOS[@]}"
180180
apt-get -qq update
@@ -195,7 +195,7 @@ install_ci () {
195195
}
196196

197197
install_llvm () {
198-
add_apt_key "${APT_KEY_KITWARE}"
198+
add_apt_key "${APT_KEY_KITWARE}" "kitware.asc"
199199
add_apt_repos "${APT_REPOS_LLVM[@]}"
200200
apt-get -qq update -y
201201
apt-get -qq install -y --no-install-recommends "${LLVM_PACKAGES[@]}"

0 commit comments

Comments
 (0)