Skip to content

Commit 1a6d805

Browse files
authored
Merge pull request #269 from lcarva/RHTAP-5275
Include the oc binary in runner image
2 parents 935b3dd + c702084 commit 1a6d805

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM registry.redhat.io/rhtas/cosign-rhel9:1.2.0@sha256:cb53dcc3bc912dd7f12147f3
22

33
FROM registry.redhat.io/rhtas/ec-rhel9:0.6@sha256:34a7be862ef23c44526ed84bb4f228ffc6c87e15d3e09803546c46bb9cd22d97 as ec
44

5+
FROM registry.redhat.io/openshift4/ose-cli:latest@sha256:1f3a18b91df18f4a5e27218127495b03e44a670cf04329de98bcb367f4422985 as oc
6+
57
# Ideally, use the official image from Red Hat, e.g. registry.access.redhat.com/ubi10/go-toolset,
68
# but a 1.24 release does not yet exist.
79
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.24@sha256:beed4519c775d6123c11351048be29e6f93ab0adaea2c7d55977b445966f5b27 as go-builder
@@ -55,6 +57,7 @@ RUN \
5557
COPY --from=cosign /usr/local/bin/cosign /usr/bin/cosign
5658
COPY --from=ec /usr/local/bin/ec /usr/bin/ec
5759
COPY --from=ec /usr/local/bin/reduce-snapshot.sh /usr/bin/reduce-snapshot.sh
60+
COPY --from=oc /usr/bin/oc /usr/bin/oc
5861
COPY --from=go-builder /usr/local/bin/yq /usr/bin/yq
5962
COPY --from=go-builder /usr/local/bin/syft /usr/bin/syft
6063
COPY --from=go-builder /usr/local/bin/splashy /usr/bin/splashy

0 commit comments

Comments
 (0)