Skip to content

Commit

Permalink
Remove dind in ci tests (#8529) (#8534)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz authored May 2, 2022
1 parent 582adb4 commit 9e3dd4e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ fi
# create output directory as current user to avoid problem with docker.
mkdir -p "${KUBE_ROOT}/bin" "${KUBE_ROOT}/bin/${ARCH}"

if [[ "$DOCKER_IN_DOCKER_ENABLED" == "true" ]]; then
/bin/bash -c "${FLAGS}"
PLATFORM="${PLATFORM:-}"
if [[ -n "$PLATFORM" ]]; then
PLATFORM_FLAG=--platform
else
docker run \
PLATFORM_FLAG=
fi

docker run \
${PLATFORM_FLAG} ${PLATFORM} \
--tty \
--rm \
${DOCKER_OPTS} \
Expand All @@ -73,4 +78,3 @@ else
-w "/go/src/${PKG}" \
-u $(id -u ${USER}):$(id -g ${USER}) \
${E2E_IMAGE} /bin/bash -c "${FLAGS}"
fi

0 comments on commit 9e3dd4e

Please sign in to comment.