-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NO-ISSUE: Download rpm packages in a different stage at the build of …
…Dockerfile-build as golang image is based on centos 7 which cannot reach its repositories as it is EOL (#242)
- Loading branch information
Showing
2 changed files
with
16 additions
and
9 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 |
---|---|---|
@@ -1,6 +1,19 @@ | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.21 | ||
FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS golang | ||
|
||
ENV GO111MODULE=on | ||
ENV GOFLAGS="" | ||
|
||
COPY hack/setup_env.sh ./ | ||
RUN ./setup_env.sh | ||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 | ||
RUN go install golang.org/x/tools/cmd/goimports@v0.22.0 | ||
RUN go install github.com/golang/mock/mockgen@v1.6.0 | ||
|
||
FROM quay.io/centos/centos:stream9 | ||
|
||
RUN dnf install -y podman genisoimage make && dnf clean all | ||
|
||
ENV GOROOT=/usr/lib/golang | ||
ENV GOPATH=/opt/app-root/src/go | ||
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin | ||
|
||
COPY --from=golang $GOPATH $GOPATH | ||
COPY --from=golang $GOROOT $GOROOT |
This file was deleted.
Oops, something went wrong.