Skip to content

Commit 2eeb209

Browse files
committed
Update dockerfile
Signed-off-by: savitaashture <[email protected]>
1 parent a82dfa8 commit 2eeb209

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.konflux/dockerfiles/controller.Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2-
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:92b1d5747a93608b6adb64dfd54515c3c5a360802db4706765ff3d8470df6290
2+
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f172b3082a3d1bbe789a1057f03883c1113243564f01cd3020e27548b911d3f8
33

44
FROM $GO_BUILDER AS builder
55

@@ -9,12 +9,11 @@ RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; g
99
ENV GODEBUG="http2server=0"
1010
ENV GOEXPERIMENT=strictfipsruntime
1111
RUN git rev-parse HEAD > /tmp/HEAD
12-
RUN CGO_ENABLED=0 \
13-
go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -tags strictfipsruntime -v -o /tmp/manual-approval-gate-controller \
12+
RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -tags strictfipsruntime -v -o /tmp/manual-approval-gate-controller \
1413
./cmd/controller
1514

1615
FROM $RUNTIME
17-
ARG VERSION=manual-approval-gate-controller-0.6
16+
ARG VERSION=manual-approval-gate-controller-1-19
1817

1918
ENV KO_APP=/ko-app \
2019
KO_DATA_PATH=/kodata
@@ -33,8 +32,6 @@ LABEL \
3332
io.k8s.description="Red Hat OpenShift Pipelines Manual Approval Gate" \
3433
io.openshift.tags="pipelines,tekton,openshift"
3534

36-
37-
RUN microdnf install -y shadow-utils
3835
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
3936
USER 65532
4037

.konflux/dockerfiles/webhook.Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2-
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:92b1d5747a93608b6adb64dfd54515c3c5a360802db4706765ff3d8470df6290
2+
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f172b3082a3d1bbe789a1057f03883c1113243564f01cd3020e27548b911d3f8
33

44
FROM $GO_BUILDER AS builder
55

@@ -9,12 +9,11 @@ RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; g
99
ENV GODEBUG="http2server=0"
1010
ENV GOEXPERIMENT=strictfipsruntime
1111
RUN git rev-parse HEAD > /tmp/HEAD
12-
RUN CGO_ENABLED=0 \
13-
go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -tags strictfipsruntime -v -o /tmp/manual-approval-gate-webhook \
12+
RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -tags strictfipsruntime -v -o /tmp/manual-approval-gate-webhook \
1413
./cmd/webhook
1514

1615
FROM $RUNTIME
17-
ARG VERSION=manual-approval-gate-webhook-0.6
16+
ARG VERSION=manual-approval-gate-webhook-1-19
1817

1918
ENV KO_APP=/ko-app
2019

@@ -31,8 +30,6 @@ LABEL \
3130
io.k8s.description="Red Hat OpenShift Pipelines Manual Approval Gate" \
3231
io.openshift.tags="pipelines,tekton,openshift"
3332

34-
35-
RUN microdnf install -y shadow-utils
3633
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
3734
USER 65532
3835

0 commit comments

Comments
 (0)