Merge pull request #97982 from hasheddan/conformance-platforms

Fix non-amd64 conformance image builds
This commit is contained in:
Kubernetes Prow Robot 2021-01-13 10:19:01 -08:00 committed by GitHub
commit 9ca86c2404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM BASEIMAGE
FROM --platform=linux/ARCH BASEIMAGE
COPY ginkgo /usr/local/bin/
COPY e2e.test /usr/local/bin/

View File

@ -31,7 +31,7 @@ E2E_GO_RUNNER_BIN?=$(shell test -f $(LOCAL_OUTPUT_PATH)/go-runner && echo $(LOCA
CLUSTER_DIR?=$(shell pwd)/../../../cluster/
BASEIMAGE=debian:stretch-slim
BASEIMAGE=debian:stable-slim
TEMP_DIR:=$(shell mktemp -d -t conformanceXXXXXX)
all: build
@ -54,7 +54,7 @@ endif
chmod a+rx ${TEMP_DIR}/e2e.test
chmod a+rx ${TEMP_DIR}/gorunner
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
cd ${TEMP_DIR} && sed -i.back "s|ARCH|${ARCH}|g; s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
docker build --pull -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
rm -rf "${TEMP_DIR}"