Skip to content

Commit

Permalink
Allow to pass opm image via ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Oct 7, 2024
1 parent 3e09635 commit 38e6902
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions olm-catalog/serverless-operator/index/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.17 AS opm
ARG OPM_IMAGE=registry.ci.openshift.org/origin/4.17:operator-registry

FROM $OPM_IMAGE AS opm

FROM registry.access.redhat.com/ubi9/ubi-minimal as builder

Expand All @@ -19,7 +21,7 @@ registry.ci.openshift.org/knative/release-1.34.0:serverless-bundle \

# The base image is expected to contain
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.17
FROM $OPM_IMAGE

# Copy declarative config root into image at /configs
COPY --from=builder /configs /configs
Expand Down
6 changes: 4 additions & 2 deletions templates/index.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v__OCP_MAX_VERSION__ AS opm
ARG OPM_IMAGE=registry.ci.openshift.org/origin/__OCP_MAX_VERSION__:operator-registry

FROM $OPM_IMAGE AS opm

FROM registry.access.redhat.com/ubi9/ubi-minimal as builder

Expand All @@ -15,7 +17,7 @@ RUN /bin/opm render --skip-tls-verify -o yaml \

# The base image is expected to contain
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v__OCP_MAX_VERSION__
FROM $OPM_IMAGE

# Copy declarative config root into image at /configs
COPY --from=builder /configs /configs
Expand Down

0 comments on commit 38e6902

Please sign in to comment.