Skip to content

Commit 50fc05a

Browse files
dtfranzci-robot
authored andcommitted
UPSTREAM: <carry>: Add e2e registry Dockerfile
Signed-off-by: dtfranz <[email protected]>
1 parent 8077fba commit 50fc05a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

openshift/registry.Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
2+
WORKDIR /build
3+
COPY . .
4+
# TODO Modify upstream Makefile to separate the 'go build' commands
5+
# from 'image-registry' target so we don't need these
6+
RUN go build -o ./registry ./testdata/registry/registry.go
7+
RUN go build -o ./push ./testdata/push/push.go
8+
9+
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
10+
USER 1001
11+
COPY --from=builder /build/registry /registry
12+
COPY --from=builder /build/push /push
13+
COPY openshift/manifests /openshift/manifests
14+
15+
LABEL io.k8s.display-name="OpenShift Operator Lifecycle Manager Operator Controller E2E Registry" \
16+
io.k8s.description="This is a registry image that is used during E2E testing of Operator Controller"

0 commit comments

Comments
 (0)