tendermint/test/docker/Dockerfile

32 lines
735 B
Docker
Raw Normal View History

FROM golang:1.10
2016-07-23 12:48:30 -04:00
2017-03-06 02:42:00 -05:00
# Add testing deps for curl
RUN echo 'deb http://httpredir.debian.org/debian testing main non-free contrib' >> /etc/apt/sources.list
# Grab deps (jq, hexdump, xxd, killall)
2016-07-24 14:08:47 -04:00
RUN apt-get update && \
apt-get install -y --no-install-recommends \
2017-03-06 02:42:00 -05:00
jq bsdmainutils vim-common psmisc netcat curl
2016-07-24 14:08:47 -04:00
2017-06-26 12:08:38 +04:00
# Setup tendermint repo
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
ENV GOBIN $GOPATH/bin
WORKDIR $REPO
2017-03-05 14:59:02 -05:00
# Copy in the code
COPY . $REPO
# Install the vendored dependencies
2017-03-05 14:59:02 -05:00
# docker caching prevents reinstall on code change!
2017-12-25 10:24:41 -05:00
RUN make get_tools
2016-07-24 14:08:47 -04:00
RUN make get_vendor_deps
RUN go install ./cmd/tendermint
2018-07-04 15:09:06 -04:00
RUN go install ./abci/cmd/abci-cli
2016-07-24 14:08:47 -04:00
# expose the volume for debugging
VOLUME $REPO
EXPOSE 26656
EXPOSE 26657