From 8493c5ca38d1836143663428b5574997edfe2893 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 4 Dec 2019 17:00:37 +0100 Subject: [PATCH] Fix the nop hack I hate myself Signed-off-by: Chmouel Boudjnah --- openshift/ci-operator/tekton-images/nop/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/ci-operator/tekton-images/nop/Dockerfile b/openshift/ci-operator/tekton-images/nop/Dockerfile index 499c66a7ffb..ed82cd40edc 100644 --- a/openshift/ci-operator/tekton-images/nop/Dockerfile +++ b/openshift/ci-operator/tekton-images/nop/Dockerfile @@ -5,6 +5,6 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest # distroless. We want to mimic as much as possible the distroless image but # still be based on a UBI, it's not pretty but let's hope we can remove this when # we get https://github.com/tektoncd/pipeline/issues/1347 -RUN cp /bin/true /tmp && rm -f /usr/bin/* /usr/sbin/* /bin/* /sbin/*;cp -v /tmp/true /bin/true +RUN for i in /usr/bin/* /usr/sbin/* /bin/* /sbin/*;do [[ $i == /bin/true ]] && continue;rm -v $i;done ENTRYPOINT ["/bin/true"]