This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use golang 1.9.4 from website (#2383)
1. go1.9.4 from website to run tests without coverage and build the binary 2. go1.11 from epel to run tests with coverage (we need go >= 1.10 because test cache was introduced in go 1.10)
- Loading branch information
1 parent
fe049a7
commit 6423598
Showing
10 changed files
with
42 additions
and
36 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 |
---|---|---|
|
@@ -2,13 +2,14 @@ FROM centos:7 | |
LABEL maintainer "Devtools <[email protected]>" | ||
LABEL author "Konrad Kleine <[email protected]>" | ||
ENV LANG=en_US.utf8 | ||
ARG USE_GO_VERSION_FROM_WEBSITE=0 | ||
ARG USE_GO_VERSION_FROM_WEBSITE=1 | ||
|
||
# Some packages might seem weird but they are required by the RVM installer. | ||
RUN yum --enablerepo=centosplus install -y --quiet \ | ||
RUN yum install epel-release -y \ | ||
&& yum install --enablerepo=centosplus install -y --quiet \ | ||
findutils \ | ||
git \ | ||
$(test -z $USE_GO_VERSION_FROM_WEBSITE && echo "golang") \ | ||
$(test "$USE_GO_VERSION_FROM_WEBSITE" != 1 && echo "golang") \ | ||
make \ | ||
procps-ng \ | ||
tar \ | ||
|
@@ -18,13 +19,13 @@ RUN yum --enablerepo=centosplus install -y --quiet \ | |
postgresql \ | ||
&& yum clean all | ||
|
||
RUN test -n $USE_GO_VERSION_FROM_WEBSITE \ | ||
&& cd /tmp \ | ||
&& wget --no-verbose https://dl.google.com/go/go1.10.linux-amd64.tar.gz \ | ||
&& echo "b5a64335f1490277b585832d1f6c7f8c6c11206cba5cd3f771dcb87b98ad1a33 go1.10.linux-amd64.tar.gz" > checksum \ | ||
RUN if [[ "$USE_GO_VERSION_FROM_WEBSITE" = 1 ]]; then cd /tmp \ | ||
&& wget --no-verbose https://dl.google.com/go/go1.9.4.linux-amd64.tar.gz \ | ||
&& echo "15b0937615809f87321a457bb1265f946f9f6e736c563d6c5e0bd2c22e44f779 go1.9.4.linux-amd64.tar.gz" > checksum \ | ||
&& sha256sum -c checksum \ | ||
&& tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz \ | ||
&& rm -f go1.10.linux-amd64.tar.gz | ||
&& tar -C /usr/local -xzf go1.9.4.linux-amd64.tar.gz \ | ||
&& rm -f go1.9.4.linux-amd64.tar.gz; \ | ||
fi | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
|
||
# Get dep for Go package management and make sure the directory has full rwz permissions for non-root users | ||
|
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
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
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
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