mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Dockerfile-test: use ubuntu LTS and build workaround for old go-tools
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
This commit is contained in:
parent
5caf504f40
commit
7436c63a48
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.10
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||||
@ -29,6 +29,7 @@ RUN apt-get -y update \
|
|||||||
&& apt-get -y autoremove \
|
&& apt-get -y autoremove \
|
||||||
&& apt-get -y autoclean
|
&& apt-get -y autoclean
|
||||||
|
|
||||||
|
ENV GO111MODULE=off
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
|
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
|
||||||
@ -46,11 +47,18 @@ ADD ./scripts/install-marker.sh /tmp/install-marker.sh
|
|||||||
|
|
||||||
RUN go get -v -u -tags spell github.com/chzchzchz/goword \
|
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 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 \
|
&& go get -v -u github.com/wadey/gocovmerge \
|
||||||
&& go get -v -u github.com/gordonklaus/ineffassign \
|
&& go get -v -u github.com/gordonklaus/ineffassign \
|
||||||
|
&& mkdir -p $GOPATH/src/honnef.co/go/tools \
|
||||||
|
&& git clone https://github.com/dominikh/go-tools.git $GOPATH/src/honnef.co/go/tools \
|
||||||
|
&& cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck \
|
||||||
|
&& git checkout 2017.2.2 \
|
||||||
|
&& go get \
|
||||||
|
&& go install \
|
||||||
|
&& cd $GOPATH/src/honnef.co/go/tools/cmd/gosimple \
|
||||||
|
&& go install \
|
||||||
|
&& cd $GOPATH/src/honnef.co/go/tools/cmd/unused \
|
||||||
|
&& go install \
|
||||||
&& /tmp/install-marker.sh amd64 \
|
&& /tmp/install-marker.sh amd64 \
|
||||||
&& rm -f /tmp/install-marker.sh \
|
&& rm -f /tmp/install-marker.sh \
|
||||||
&& curl -s https://codecov.io/bash >/codecov \
|
&& curl -s https://codecov.io/bash >/codecov \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user