|
1 | 1 | ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23 |
2 | | -ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal@sha256:daa61d6103e98bccf40d7a69a0d4f8786ec390e2204fd94f7cc49053e9949360 |
| 2 | +ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:66b99214cb9733e77c4a12cc3e3cbbe76769a213f4e2767f170a4f0fdf9db490 |
3 | 3 |
|
4 | 4 | FROM $GO_BUILDER AS builder |
5 | 5 |
|
6 | 6 | WORKDIR /go/src/github.com/openshift-pipelines/tektoncd-pruner |
7 | 7 | COPY . . |
8 | 8 |
|
9 | | -RUN go build -v -o /tmp/controller ./cmd/controller |
| 9 | +ENV GODEBUG="http2server=0" |
| 10 | +RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat HEAD)'" -mod=vendor -tags disable_gcp -v -o /tmp/controller \ |
| 11 | + ./cmd/controller |
10 | 12 |
|
11 | 13 | FROM $RUNTIME |
12 | | -ARG VERSION=tektoncd-pruner |
| 14 | +ARG VERSION=tektoncd-pruner-1-18 |
13 | 15 |
|
14 | | -COPY --from=builder /tmp/controller /ko-app/controller |
| 16 | +ENV KO_APP=/ko-app \ |
| 17 | + CONTROLLER=${KO_APP}/controller |
15 | 18 |
|
| 19 | +COPY --from=builder /tmp/controller ${CONTROLLER} |
16 | 20 |
|
17 | 21 | LABEL \ |
18 | | - com.redhat.component="openshift-pipelines-tektoncd-pruner-controller" \ |
19 | | - name="openshift-pipelines/pipelines-tektoncd-pruner-rhel9" \ |
| 22 | + com.redhat.component="openshift-pipelines-tektoncd-pruner-controller-rhel9-container" \ |
| 23 | + name="openshift-pipelines/pipelines-tektoncd-pruner-controller-rhel9" \ |
20 | 24 | version=$VERSION \ |
21 | | - summary="Red Hat OpenShift Pipelines Tekton Pruner - Controller" \ |
| 25 | + summary="Red Hat OpenShift Pipelines tektoncd-pruner Controller" \ |
22 | 26 | |
23 | | - description="Red Hat OpenShift Pipelines Tekton Pruner - Controller" \ |
24 | | - io.k8s.display-name="Red Hat OpenShift Pipelines Tekton Pruner - Controller" \ |
25 | | - io.k8s.description="Red Hat OpenShift Pipelines Tekton Pruner - Controller" \ |
26 | | - io.openshift.tags="pipelines,tekton,openshift,tektoncd-pruner-controller" |
| 27 | + description="Red Hat OpenShift Pipelines tektoncd-pruner Controller" \ |
| 28 | + io.k8s.display-name="Red Hat OpenShift Pipelines tektoncd-pruner Controller" \ |
| 29 | + io.k8s.description="Red Hat OpenShift Pipelines tektoncd-pruner Controller" \ |
| 30 | + io.openshift.tags="pipelines,tekton,openshift" |
27 | 31 |
|
28 | | -RUN microdnf install -y shadow-utils |
29 | 32 | RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot |
30 | 33 | USER 65532 |
| 34 | + |
| 35 | +ENTRYPOINT $CONTROLLER |
0 commit comments