Skip to content

Commit

Permalink
Implement code review feedback
Browse files Browse the repository at this point in the history
 - Change base of docker-sonic-p4 to bullseye base
 - Remove fallback case not needed for dists later than Jessie

Signed-off-by: Christian Svensson <blue@cmd.nu>
  • Loading branch information
bluecmd committed Nov 3, 2023
1 parent 4bdcb95 commit b236f50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion platform/p4/docker-sonic-p4/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker-config-engine-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
FROM docker-config-engine-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}

ARG docker_container_name

Expand Down
1 change: 0 additions & 1 deletion src/sonic-build-hooks/scripts/collect_version_files
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ TARGET_PATH=$1
[ -z "$TARGET_PATH" ] && TARGET_PATH=$POST_VERSION_PATH
ARCH=$(dpkg --print-architecture)
DIST=$(grep VERSION_CODENAME /etc/os-release | cut -d= -f2)
([ -z "$DIST" ] && grep -q bullseye /etc/os-release) && DIST=bullseye

mkdir -p $TARGET_PATH
chmod a+rw $TARGET_PATH
Expand Down

0 comments on commit b236f50

Please sign in to comment.