Skip to content

Commit

Permalink
[release-v1.16] Install tzdata (#913)
Browse files Browse the repository at this point in the history
* Install tzdata in Dockerfiles

* Run generate.sh
  • Loading branch information
creydr authored Oct 31, 2024
1 parent 8d88302 commit 086c6fb
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/apiserver_receive_ad
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/apiserver_receive_adapter

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/appender/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/appender
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/appender

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/in_memory/channel_co
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/channel_controller

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/in_memory/channel_di
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/channel_dispatcher

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/controller
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/controller

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/event_display
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/event_display

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/filter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/broker/filter
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/filter

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/heartbeats/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/heartbeats
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/heartbeats

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/heartbeats_receiver
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/heartbeats_receiver

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/ingress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/broker/ingress
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/ingress

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/jobsink/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/jobsink
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/jobsink

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/migrate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./vendor/knative.dev/pkg/a
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/migrate

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/mqttsource/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/mqttsource
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/mqttsource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/mtchannel_broker
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/mtchannel_broker

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/mtping/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/mtping
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/mtping

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/pong/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/pong
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/pong

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/schema/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/schema
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/schema

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-images/webhook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/webhook
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/webhook

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./cmd/websocketsource
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/websocketsource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/event-s
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/event-sender

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./vendor/knative.dev/recon
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/eventshub

Expand Down
1 change: 1 addition & 0 deletions openshift/ci-operator/knative-test-images/print/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/print
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/print

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/recorde
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/recordevents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/request
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/request-sender

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/wathola
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/wathola-fetcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/wathola
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/wathola-forwarder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/wathola
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/wathola-receiver

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN go build -tags strictfipsruntime -o /usr/bin/main ./test/test_images/wathola
FROM $GO_RUNTIME

ARG VERSION=knative-v1.16
RUN microdnf update tzdata -y && microdnf reinstall tzdata -y

COPY --from=builder /usr/bin/main /usr/bin/wathola-sender

Expand Down
1 change: 1 addition & 0 deletions openshift/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ rm -rf "$tmp_dir"
$(go env GOPATH)/bin/generate \
--root-dir "${repo_root_dir}" \
--generators dockerfile \
--additional-packages tzdata \
--dockerfile-image-builder-fmt "registry.ci.openshift.org/openshift/release:rhel-8-release-golang-%s-openshift-4.17"

0 comments on commit 086c6fb

Please sign in to comment.