Skip to content

Commit

Permalink
Revert "Remove dind in ci tests (kubernetes#8529) (kubernetes#8534)" (k…
Browse files Browse the repository at this point in the history
…ubernetes#8546)

This reverts commit 9e3dd4e.
  • Loading branch information
rikatz authored May 4, 2022
1 parent 9e3dd4e commit ca2f25e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions build/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,10 @@ fi
# create output directory as current user to avoid problem with docker.
mkdir -p "${KUBE_ROOT}/bin" "${KUBE_ROOT}/bin/${ARCH}"

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

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

0 comments on commit ca2f25e

Please sign in to comment.