mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/Dockerfile: update, fix GOPATH
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
40ed18a457
commit
dc02dc2ede
@ -1,21 +1,38 @@
|
|||||||
FROM fedora:28
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
RUN dnf check-update || true \
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
&& dnf install --assumeyes \
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||||
git curl wget mercurial meld gcc gcc-c++ which \
|
|
||||||
gcc automake autoconf dh-autoreconf libtool libtool-ltdl \
|
RUN apt-get -y update \
|
||||||
tar unzip gzip \
|
&& apt-get -y install \
|
||||||
aspell-devel aspell-en hunspell hunspell-devel hunspell-en hunspell-en-US ShellCheck nc || true \
|
build-essential \
|
||||||
&& dnf check-update || true \
|
gcc \
|
||||||
&& dnf upgrade --assumeyes || true \
|
apt-utils \
|
||||||
&& dnf autoremove --assumeyes || true \
|
pkg-config \
|
||||||
&& dnf clean all || true \
|
software-properties-common \
|
||||||
&& dnf reinstall which || true
|
apt-transport-https \
|
||||||
|
libssl-dev \
|
||||||
|
sudo \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
wget \
|
||||||
|
tar \
|
||||||
|
git \
|
||||||
|
netcat \
|
||||||
|
libaspell-dev \
|
||||||
|
libhunspell-dev \
|
||||||
|
hunspell-en-us \
|
||||||
|
aspell-en \
|
||||||
|
shellcheck \
|
||||||
|
&& apt-get -y update \
|
||||||
|
&& apt-get -y upgrade \
|
||||||
|
&& apt-get -y autoremove \
|
||||||
|
&& apt-get -y autoclean
|
||||||
|
|
||||||
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}
|
||||||
ENV GO_VERSION 1.10.1
|
ENV GO_VERSION 1.10.3
|
||||||
ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
|
ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
|
||||||
RUN rm -rf ${GOROOT} \
|
RUN rm -rf ${GOROOT} \
|
||||||
&& curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
|
&& curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
|
||||||
@ -27,12 +44,11 @@ WORKDIR ${GOPATH}/src/github.com/coreos/etcd
|
|||||||
|
|
||||||
ADD ./scripts/install-marker.sh /tmp/install-marker.sh
|
ADD ./scripts/install-marker.sh /tmp/install-marker.sh
|
||||||
|
|
||||||
# manually link "goword" dependency
|
|
||||||
# ldconfig -v | grep hunspell
|
|
||||||
RUN ln -s /lib64/libhunspell-1.6.so /lib64/libhunspell.so
|
|
||||||
|
|
||||||
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 github.com/mgechev/revive \
|
||||||
|
&& go get -v -u github.com/mdempsky/unconvert \
|
||||||
|
&& go get -v -u mvdan.cc/unparam \
|
||||||
&& go get -v -u honnef.co/go/tools/cmd/gosimple \
|
&& 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/unused \
|
||||||
&& go get -v -u honnef.co/go/tools/cmd/staticcheck \
|
&& go get -v -u honnef.co/go/tools/cmd/staticcheck \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user