tendermint/test/docker/Dockerfile

39 lines
836 B
Docker
Raw Normal View History

FROM golang:1.10
2016-07-23 09:48:30 -07:00
2017-03-05 23:42:00 -08: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 11:08:47 -07:00
RUN apt-get update && \
apt-get install -y --no-install-recommends \
2017-03-05 23:42:00 -08:00
jq bsdmainutils vim-common psmisc netcat curl
2016-07-24 11:08:47 -07:00
2017-06-26 01:08:38 -07:00
# Setup tendermint repo
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
ENV GOBIN $GOPATH/bin
WORKDIR $REPO
2017-03-05 11:59:02 -08:00
# Copy in the code
COPY . $REPO
# Install the vendored dependencies
2017-03-05 11:59:02 -08:00
# docker caching prevents reinstall on code change!
2017-12-25 07:24:41 -08:00
RUN make get_tools
2016-07-24 11:08:47 -07:00
RUN make get_vendor_deps
2016-10-12 09:28:34 -07:00
# Now copy in the code
# NOTE: this will overwrite whatever is in vendor/
COPY . $REPO
2016-07-24 11:08:47 -07:00
# install ABCI CLI
2018-07-24 06:42:08 -07:00
RUN make install_abci
2018-07-24 06:42:08 -07:00
# install Tendermint
RUN make install
2016-07-24 11:08:47 -07:00
# expose the volume for debugging
VOLUME $REPO
EXPOSE 26656
EXPOSE 26657