Use distroless/base:latest for Conformance image

Going with the guess that nonroot is the problem of creating
/tmp/results/e2e.log in container

Removing manual creation of /tmp/results as well
This commit is contained in:
Wilson E. Husin 2021-03-08 16:18:10 -08:00
parent 6d52c00084
commit be3719a357
2 changed files with 1 additions and 5 deletions

View File

@ -15,13 +15,9 @@
ARG BASEIMAGE
FROM gcr.io/k8s-staging-build-image/debian-base:v2.1.3 as base
RUN mkdir /tmp/results \
&& chown 65532 /tmp/results # Distroless nonroot UID
FROM ${BASEIMAGE}
COPY --from=base /tmp/results /tmp
# This is a dependency for `kubectl diff` tests
COPY --from=base /usr/bin/diff /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=gcr.io/distroless/base:nonroot
BASEIMAGE=gcr.io/distroless/base:latest
TEMP_DIR:=$(shell mktemp -d -t conformanceXXXXXX)
all: build