From d4de703c15d0571efbd4c98a28900a3c3ad19a52 Mon Sep 17 00:00:00 2001 From: Nikolai Shields Date: Wed, 24 Aug 2022 15:19:47 -0500 Subject: [PATCH 1/2] Distribute with BCI --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2beb629..a330058 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG TAG="v1.5" -ARG UBI_IMAGE=registry.access.redhat.com/ubi7/ubi-minimal:latest +ARG BCI_IMAGE=registry.suse.com/bci/bci-base:15.3.17.20.12 ARG GO_IMAGE=rancher/hardened-build-base:v1.18.5b7 # Build the project @@ -14,8 +14,8 @@ RUN git checkout tags/${TAG} -b ${TAG} RUN make # Create the network resources injector image -FROM ${UBI_IMAGE} -RUN microdnf update -y && microdnf install bash +FROM ${BCI_IMAGE} +RUN zypper update -y && zypper install bash WORKDIR / COPY --from=builder /go/network-resources-injector/bin/webhook /usr/bin/ COPY --from=builder /go/network-resources-injector/bin/installer /usr/bin/ From 331d9052498f7e4ec05f69be3f7f5851da3e0617 Mon Sep 17 00:00:00 2001 From: Brooks Newberry Date: Thu, 6 Oct 2022 23:55:27 -0700 Subject: [PATCH 2/2] install which gawk Signed-off-by: Brooks Newberry --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a330058..cc68814 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,10 @@ RUN make # Create the network resources injector image FROM ${BCI_IMAGE} -RUN zypper update -y && zypper install bash +RUN zypper refresh && \ + zypper update -y && \ + zypper install -y gawk which && \ + zypper clean -a WORKDIR / COPY --from=builder /go/network-resources-injector/bin/webhook /usr/bin/ COPY --from=builder /go/network-resources-injector/bin/installer /usr/bin/