-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile-test: add test image with Go 1.9
Not to be blocked on Go 1.9 migration by CIs (e.g. Semaphore CI not supporting Go 1.9). Signed-off-by: Gyu-Ho Lee <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 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,29 @@ | ||
FROM golang:1.9-stretch | ||
|
||
RUN apt-get -y update | ||
RUN apt-get -y install \ | ||
netcat \ | ||
libaspell-dev \ | ||
libhunspell-dev \ | ||
hunspell-en-us \ | ||
aspell-en \ | ||
shellcheck | ||
|
||
RUN mkdir -p ${GOPATH}/src/github.com/coreos/etcd | ||
WORKDIR ${GOPATH}/src/github.com/coreos/etcd | ||
|
||
ADD ./scripts/install-marker.sh ./scripts/install-marker.sh | ||
|
||
RUN go get -v -u -tags spell github.com/chzchzchz/goword \ | ||
&& go get -v -u github.com/coreos/license-bill-of-materials \ | ||
&& go get -v -u honnef.co/go/tools/cmd/gosimple \ | ||
&& go get -v -u honnef.co/go/tools/cmd/unused \ | ||
&& go get -v -u honnef.co/go/tools/cmd/staticcheck \ | ||
&& go get -v -u github.com/wadey/gocovmerge \ | ||
&& ./scripts/install-marker.sh amd64 | ||
|
||
# e.g. after 'docker build' | ||
# docker run --volume=`pwd`:/go/src/github.com/coreos/etcd \ | ||
# etcd-test \ | ||
# /bin/sh -c "RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional' ./test 2>&1 | tee test.log" | ||
|