forked from knative/eventing
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #442 from openshift-knative/run-command-release-v1…
….12-generate-release [release-v1.12] Run `make generate-release`
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/broker/filter. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/broker/filter/kodata && \ | ||
go build -o /usr/bin/main ./cmd/broker/filter && \ | ||
cp -r cmd/broker/filter/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/broker/ingress. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/broker/ingress/kodata && \ | ||
go build -o /usr/bin/main ./cmd/broker/ingress && \ | ||
cp -r cmd/broker/ingress/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# DO NOT EDIT! Generated Dockerfile. | ||
|
||
FROM src | ||
|
||
RUN chmod +x vendor/k8s.io/code-generator/generate-groups.sh vendor/knative.dev/pkg/hack/generate-knative.sh || true |