From 7ff2766b97d2e37908a468de9a492fac6dea81ee Mon Sep 17 00:00:00 2001 From: David Simansky Date: Fri, 5 Aug 2022 17:26:48 +0200 Subject: [PATCH] Add test-e2e-image to supersede build-image (#1118) --- openshift/ci-operator/test-e2e-image/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 openshift/ci-operator/test-e2e-image/Dockerfile diff --git a/openshift/ci-operator/test-e2e-image/Dockerfile b/openshift/ci-operator/test-e2e-image/Dockerfile new file mode 100644 index 0000000000..956110d099 --- /dev/null +++ b/openshift/ci-operator/test-e2e-image/Dockerfile @@ -0,0 +1,12 @@ +FROM src + +# Serverless operator tooling dependencies +RUN yum install -y httpd-tools +RUN wget -q https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 -O /usr/bin/yq &&\ + chmod +x /usr/bin/yq + +# oc binary is injected by test steps to /cli dir + mask it as kubectl +RUN ln -s /cli/oc /usr/bin/kubectl + +# Allow runtime users to add entries to /etc/passwd +RUN chmod g+rw /etc/passwd