-
Notifications
You must be signed in to change notification settings - Fork 2
/
Containerfile
31 lines (23 loc) · 1.38 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM registry.access.redhat.com/ubi9/go-toolset:1.21.11-7 as osdk-builder
COPY --chown=default ./operator-sdk/. /opt/app-root/src/
WORKDIR /opt/app-root/src
RUN ls -l && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o operator-sdk cmd/operator-sdk/main.go
FROM registry.access.redhat.com/ubi9/go-toolset:1.21.11-7 as kustomize-builder
COPY --chown=default ./kustomize/. /opt/app-root/src/
WORKDIR /opt/app-root/src
RUN ls -l && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o kustomize ./kustomize
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:c0e70387664f30cd9cf2795b547e4a9a51002c44a4a86aa9335ab030134bf392
COPY LICENSE /licenses
COPY --from=osdk-builder /opt/app-root/src/operator-sdk /bin
COPY --from=kustomize-builder /opt/app-root/src/kustomize /bin
ARG INSTALLED_RPMS="gettext make"
RUN microdnf install -y gettext
ENTRYPOINT ["/bin/operator-sdk"]
LABEL \
description="Konflux image containing rebuilds for tooling to assist in building OLM operators, bundles, and catalogs." \
io.k8s.description="Konflux image containing rebuilds for tooling to assist in building OLM operators, bundles, and catalogs." \
summary="Konflux operator-sdk builder" \
io.k8s.display-name="Konflux operator-sdk builder" \
io.openshift.tags="konflux build operator-sdk OLM tekton pipeline security" \
name="Konflux operator-sdk builder" \
com.redhat.component="operator-sdk-builder"