mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8512 from gyuho/docker
Dockerfile-test: add test image with Go 1.9
This commit is contained in:
commit
ff31fb4b8b
29
Dockerfile-test
Normal file
29
Dockerfile-test
Normal file
@ -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.
|
||||
# docker build --tag etcd-test --file ./Dockerfile-test .
|
||||
# docker run --volume=`pwd`:/go/src/github.com/coreos/etcd etcd-test \
|
||||
# /bin/sh -c "INTEGRATION=y PASSES='build integration_e2e' ./test"
|
||||
|
Loading…
x
Reference in New Issue
Block a user