Skip to content

Commit

Permalink
docker/ci: Add support for running cross platform build image (envoyp…
Browse files Browse the repository at this point in the history
…roxy#28879)

Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Aug 7, 2023
1 parent 35684d7 commit 0d05f75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/run_envoy_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ else
&& sudo -EHs -u envoybuild bash -c 'cd /source && $*'")
fi

if [[ -n "$ENVOY_DOCKER_PLATFORM" ]]; then
echo "Setting Docker platform: ${ENVOY_DOCKER_PLATFORM}"
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
ENVOY_DOCKER_OPTIONS+=(--platform "$ENVOY_DOCKER_PLATFORM")
fi

# The IMAGE_ID defaults to the CI hash but can be set to an arbitrary image ID (found with 'docker
# images').
[[ -z "${IMAGE_ID}" ]] && IMAGE_ID="${ENVOY_BUILD_SHA}"
Expand Down

0 comments on commit 0d05f75

Please sign in to comment.