Skip to content

Commit

Permalink
[build] Add gpg keys for sonic-slave-bullseye in arm64 cross build on…
Browse files Browse the repository at this point in the history
… 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'
  • Loading branch information
liushilongbuaa committed Jan 18, 2024
1 parent f460347 commit b99c46e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sonic-slave-bullseye/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ RUN PATH=/python_virtualenv/env3/bin/:$PATH python3 -m pip uninstall -y enum34
RUN PATH=/python_virtualenv/env3/bin/:$PATH pip3 install --force-reinstall --no-cache-dir coverage
{%- endif %}

{%- if CONFIGURED_ARCH == "arm64" and MULTIARCH_QEMU_ENVIRON == "y" %}
# multiarch/debian-debootstrap:arm64-bullseye is too old. It needs to install keys
RUN apt-get update || apt-get install -y gnupg
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
{%- endif %}

RUN apt-get update && apt-get install -y \
apt-utils \
default-jre-headless \
Expand Down

0 comments on commit b99c46e

Please sign in to comment.