Skip to content

Commit 79ff588

Browse files
CM-1106: Add CI Dockerfiles for istio-csr and trust-manager operands
Adds istiocsr.Dockerfile and trustmanager.Dockerfile to images/ci/ for building operand images in OpenShift CI. These Dockerfiles follow the same pattern as operand.Dockerfile, cloning from the openshift/ fork repos at the version currently shipped by master. - istiocsr.Dockerfile: builds from openshift/cert-manager-istio-csr v0.16.0 - trustmanager.Dockerfile: builds from openshift/cert-manager-trust-manager v0.20.3 Required for the openshift/release master CI config to build and inject these operand images in e2e tests. Signed-off-by: Mytreya Kasturi <mykastur@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e8a646d commit 79ff588

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN go mod vendor
3333
RUN go build -mod=vendor -tags $GO_BUILD_TAGS -o /app/_output/webhook main.go
3434

3535

36-
FROM registry.access.redhat.com/ubi9-minimal:9.4
36+
FROM registry.access.redhat.com/ubi9-minimal:latest
3737

3838
COPY --from=builder /app/_output/acmesolver /app/cmd/acmesolver/acmesolver
3939
COPY --from=builder /app/_output/cainjector /app/cmd/cainjector/cainjector

images/ci/istiocsr.Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.21 AS builder
2+
3+
ARG RELEASE_BRANCH=v0.16.0
4+
5+
ARG GO_BUILD_TAGS=strictfipsruntime,openssl
6+
ENV GOEXPERIMENT strictfipsruntime
7+
ENV CGO_ENABLED 1
8+
9+
RUN mkdir -p /go/src/github.com/cert-manager
10+
RUN git clone --depth 1 --branch $RELEASE_BRANCH https://github.com/openshift/cert-manager-istio-csr.git /go/src/github.com/cert-manager/istio-csr
11+
WORKDIR /go/src/github.com/cert-manager/istio-csr
12+
13+
RUN go mod vendor
14+
RUN go build -mod=vendor -tags $GO_BUILD_TAGS -ldflags '-w -s' -o /app/cert-manager-istio-csr ./cmd
15+
16+
FROM registry.access.redhat.com/ubi9-minimal:latest
17+
COPY --from=builder /app/cert-manager-istio-csr /usr/local/bin/cert-manager-istio-csr
18+
USER 65532:65532
19+
ENTRYPOINT ["/usr/local/bin/cert-manager-istio-csr"]

images/ci/trustmanager.Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.21 AS builder
2+
3+
ARG RELEASE_BRANCH=v0.20.3
4+
5+
ARG GO_BUILD_TAGS=strictfipsruntime,openssl
6+
ENV GOEXPERIMENT strictfipsruntime
7+
ENV CGO_ENABLED 1
8+
9+
RUN mkdir -p /go/src/github.com/cert-manager
10+
RUN git clone --depth 1 --branch $RELEASE_BRANCH https://github.com/openshift/cert-manager-trust-manager.git /go/src/github.com/cert-manager/trust-manager
11+
WORKDIR /go/src/github.com/cert-manager/trust-manager
12+
13+
RUN go mod vendor
14+
RUN go build -mod=vendor -tags $GO_BUILD_TAGS -ldflags '-w -s' -o /app/cert-manager-trust-manager ./cmd/trust-manager
15+
16+
FROM registry.access.redhat.com/ubi9-minimal:latest
17+
COPY --from=builder /app/cert-manager-trust-manager /usr/local/bin/cert-manager-trust-manager
18+
USER 65532:65532
19+
ENTRYPOINT ["/usr/local/bin/cert-manager-trust-manager"]

0 commit comments

Comments
 (0)