From ed9d8e8a8b1f7a0734480556602ddce636ffb231 Mon Sep 17 00:00:00 2001 From: Brian O'Connor Date: Mon, 6 Dec 2021 08:34:13 -0800 Subject: [PATCH] Address comment: use python-is-python3 package for bullseye builder --- sonic-slave-bullseye/Dockerfile.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonic-slave-bullseye/Dockerfile.j2 b/sonic-slave-bullseye/Dockerfile.j2 index 2f6f05426bf2..3303531c6a89 100644 --- a/sonic-slave-bullseye/Dockerfile.j2 +++ b/sonic-slave-bullseye/Dockerfile.j2 @@ -352,7 +352,9 @@ RUN apt-get update && apt-get install -y \ pkg-config \ # For audisp-tacplus libauparse-dev \ - auditd + auditd \ +# For bazel build + python3-is-python RUN apt-get -y build-dep openssh @@ -524,6 +526,4 @@ LABEL "com.azure.dev.pipelines.agent.handler.node.path"="/usr/bin/node" {%- if CONFIGURED_ARCH == "amd64" or CONFIGURED_ARCH == "arm64" %} ARG bazelisk_url=https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-{{ CONFIGURED_ARCH }} RUN curl -fsSL -o /usr/local/bin/bazel ${bazelisk_url} && chmod 755 /usr/local/bin/bazel -# Bazel depends on "python" command, but python3 is okay -RUN ln -s /usr/bin/python3 /usr/bin/python {% endif -%}