From 641d8b6bb74ebb6ff83cd384a0ef4cbb08612224 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 22 Dec 2020 22:34:41 -0800 Subject: [PATCH] fix --- integration/integration_test.go | 4 ++-- scripts/travis-setup.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/integration/integration_test.go b/integration/integration_test.go index 2909fc5c09..d4b5cefe07 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -141,11 +141,11 @@ func buildRequiredImages() error { }{ { name: "Building kaniko image", - command: append([]string{"docker", "buildx", "build", "--platform", "linux/amd64", "-t", ExecutorImage, "--push", "-f", "../deploy/Dockerfile", ".."}), + command: append([]string{"docker", "buildx", "build", "--platform", "linux/amd64", "-t", ExecutorImage, "-f", "../deploy/Dockerfile", ".."}), }, { name: "Building cache warmer image", - command: append([]string{"docker", "buildx", "build", "--platform", "linux/amd64", "-t", WarmerImage, "--push", "-f", "../deploy/Dockerfile_warmer", ".."}), + command: append([]string{"docker", "buildx", "build", "--platform", "linux/amd64", "-t", WarmerImage, "-f", "../deploy/Dockerfile_warmer", ".."}), }, { name: "Building onbuild base image", diff --git a/scripts/travis-setup.sh b/scripts/travis-setup.sh index f335b4aafa..48b751d678 100755 --- a/scripts/travis-setup.sh +++ b/scripts/travis-setup.sh @@ -28,8 +28,7 @@ mkdir -vp ~/.docker/cli-plugins/ curl --silent -L "https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64" > ~/.docker/cli-plugins/docker-buildx chmod a+x ~/.docker/cli-plugins/docker-buildx docker buildx version -# This has to be set otherwise the default driver will not work -docker buildx create --use --name build --node build --driver-opt network=host +docker buildx create --use --name build --platform=linux/amd64 docker run -d -p 5000:5000 --restart always --name registry registry:2.6.2 docker ps | grep registry