Skip to content

Commit

Permalink
Merge pull request etcd-io#8512 from gyuho/docker
Browse files Browse the repository at this point in the history
Dockerfile-test: add test image with Go 1.9
  • Loading branch information
gyuho committed Sep 7, 2017
2 parents 9c3474e + a44e114 commit ff31fb4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile-test
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.
# 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"

0 comments on commit ff31fb4

Please sign in to comment.