Skip to content

Commit c702084

Browse files
committed
Include the oc binary in runner image
As part of RHTAP-5275, we want to start using the runner image in the Tekton Tasks. A few Tasks use the oc binary for various operations. This commit adds the latest released oc binary to the runner image. Signed-off-by: Luiz Carvalho <[email protected]>
1 parent 559a09f commit c702084

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
@@ -51,6 +53,7 @@ RUN \
5153
COPY --from=cosign /usr/local/bin/cosign /usr/bin/cosign
5254
COPY --from=ec /usr/local/bin/ec /usr/bin/ec
5355
COPY --from=ec /usr/local/bin/reduce-snapshot.sh /usr/bin/reduce-snapshot.sh
56+
COPY --from=oc /usr/bin/oc /usr/bin/oc
5457
COPY --from=go-builder /usr/local/bin/yq /usr/bin/yq
5558
COPY --from=go-builder /usr/local/bin/syft /usr/bin/syft
5659
COPY --from=go-builder /usr/local/bin/splashy /usr/bin/splashy

0 commit comments

Comments
 (0)