-
Notifications
You must be signed in to change notification settings - Fork 135
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 #2073 from fontivan/sskeard/replace-gimme-tool
infra: CNF-14990: Replace abandoned gimme tool & Provide alignment for golang version
- Loading branch information
Showing
7 changed files
with
92 additions
and
2,726 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
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,10 +1,12 @@ | ||
FROM quay.io/fedora/fedora:37-x86_64 | ||
# The fedora version used should provide the golang version that matches $GOVERSION | ||
FROM quay.io/fedora/fedora:40-x86_64 | ||
|
||
ENV GOPATH /go | ||
ENV GOBIN /go/bin | ||
ENV GOCACHE /go/.cache | ||
ENV GOVERSION=1.22.4 | ||
ENV PATH=$PATH:/root/.gimme/versions/go"$GOVERSION".linux.amd64/bin:$GOBIN | ||
# This should match the version in go.mod | ||
ENV GOVERSION=1.22 | ||
ENV PATH=$PATH:$GOBIN | ||
ARG GO_PACKAGE_PATH=github.com/openshift-kni/cnf-features-deploy | ||
|
||
# rpms required for building and running test suites | ||
|
@@ -17,20 +19,18 @@ RUN dnf -y install \ | |
skopeo \ | ||
findutils \ | ||
gcc \ | ||
golang \ | ||
python2 \ | ||
diffutils \ | ||
&& dnf clean all | ||
|
||
RUN mkdir ~/bin && \ | ||
# install Go using gimme | ||
curl -sL -o /usr/local/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme && \ | ||
chmod +x /usr/local/bin/gimme && \ | ||
eval "$(gimme $GOVERSION)" && \ | ||
cat $GIMME_ENV >> $HOME/.bashrc && \ | ||
# Print go version installed from fedora package | ||
go version && \ | ||
# get required golang tools and OC client | ||
go install github.com/onsi/ginkgo/v2/[email protected] && \ | ||
go install golang.org/x/lint/golint@latest && \ | ||
go install github.com/lack/[email protected].6 && \ | ||
go install github.com/lack/[email protected].7 && \ | ||
export latest_oc_client_version=$(curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/ 2>/dev/null | grep -o \"openshift-client-linux-4.*tar.gz\" | tr -d \") && \ | ||
curl -JL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/${latest_oc_client_version} -o oc.tar.gz && \ | ||
tar -xzvf oc.tar.gz && \ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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