2018-03-22 12:36:46 +03:00
|
|
|
FROM fedora:28
|
2017-09-07 05:02:52 +03:00
|
|
|
|
2018-03-22 12:36:46 +03:00
|
|
|
RUN dnf check-update || true \
|
|
|
|
&& dnf install --assumeyes \
|
|
|
|
git curl wget mercurial meld gcc gcc-c++ which \
|
|
|
|
gcc automake autoconf dh-autoreconf libtool libtool-ltdl \
|
|
|
|
tar unzip gzip \
|
2018-03-22 20:48:17 +03:00
|
|
|
aspell-devel aspell-en hunspell hunspell-devel hunspell-en hunspell-en-US ShellCheck nc || true \
|
2018-03-22 12:36:46 +03:00
|
|
|
&& dnf check-update || true \
|
|
|
|
&& dnf upgrade --assumeyes || true \
|
|
|
|
&& dnf autoremove --assumeyes || true \
|
|
|
|
&& dnf clean all || true \
|
|
|
|
&& dnf reinstall which || true
|
2017-10-24 05:06:03 +03:00
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
|
2017-10-26 05:35:22 +03:00
|
|
|
ENV GO_VERSION REPLACE_ME_GO_VERSION
|
2017-10-24 05:06:03 +03:00
|
|
|
ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
|
|
|
|
RUN rm -rf ${GOROOT} \
|
|
|
|
&& curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
|
|
|
|
&& mkdir -p ${GOPATH}/src ${GOPATH}/bin \
|
|
|
|
&& go version
|
2017-09-07 05:02:52 +03:00
|
|
|
|
|
|
|
RUN mkdir -p ${GOPATH}/src/github.com/coreos/etcd
|
|
|
|
WORKDIR ${GOPATH}/src/github.com/coreos/etcd
|
|
|
|
|
2017-10-24 05:06:03 +03:00
|
|
|
ADD ./scripts/install-marker.sh /tmp/install-marker.sh
|
2017-09-07 05:02:52 +03:00
|
|
|
|
2018-03-22 12:36:46 +03:00
|
|
|
# manually link "goword" dependency
|
|
|
|
# ldconfig -v | grep hunspell
|
|
|
|
RUN ln -s /lib64/libhunspell-1.6.so /lib64/libhunspell.so
|
|
|
|
|
2017-09-07 05:02:52 +03:00
|
|
|
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 \
|
2017-12-05 20:20:25 +03:00
|
|
|
&& go get -v -u github.com/gyuho/gocovmerge \
|
2017-10-09 19:36:30 +03:00
|
|
|
&& go get -v -u github.com/gordonklaus/ineffassign \
|
2017-11-11 04:54:55 +03:00
|
|
|
&& go get -v -u github.com/alexkohler/nakedret \
|
2017-10-24 05:06:03 +03:00
|
|
|
&& /tmp/install-marker.sh amd64 \
|
|
|
|
&& rm -f /tmp/install-marker.sh \
|
2017-10-23 20:29:08 +03:00
|
|
|
&& curl -s https://codecov.io/bash >/codecov \
|
|
|
|
&& chmod 700 /codecov
|