Skip to content

Commit b99c46e

Browse files
[build] Add gpg keys for sonic-slave-bullseye in arm64 cross build on amd64. (sonic-net#17182) (sonic-net#17828)
Fix sonic-net#16204 Microsoft ADO (number only): 25746782 How I did it multiarch/debian-debootstrap:arm64-bullseye is too old. It needs to add some gpg keys before 'apt-get update'
1 parent f460347 commit b99c46e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sonic-slave-bullseye/Dockerfile.j2

+7
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ RUN PATH=/python_virtualenv/env3/bin/:$PATH python3 -m pip uninstall -y enum34
8080
RUN PATH=/python_virtualenv/env3/bin/:$PATH pip3 install --force-reinstall --no-cache-dir coverage
8181
{%- endif %}
8282

83+
{%- if CONFIGURED_ARCH == "arm64" and MULTIARCH_QEMU_ENVIRON == "y" %}
84+
# multiarch/debian-debootstrap:arm64-bullseye is too old. It needs to install keys
85+
RUN apt-get update || apt-get install -y gnupg
86+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
87+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
88+
{%- endif %}
89+
8390
RUN apt-get update && apt-get install -y \
8491
apt-utils \
8592
default-jre-headless \

0 commit comments

Comments
 (0)