tendermint/test/docker/Dockerfile

37 lines
855 B
Docker
Raw Normal View History

2017-11-10 15:10:52 -05:00
FROM golang:1.9.2
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
WORKDIR $REPO
2017-03-05 14:59:02 -05:00
# Install the vendored dependencies before copying code
# docker caching prevents reinstall on code change!
ADD glide.yaml glide.yaml
ADD glide.lock glide.lock
ADD Makefile Makefile
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
2017-03-05 20:39:52 -05:00
# Install the apps
ADD scripts scripts
RUN bash scripts/install_abci_apps.sh
2016-10-12 12:28:34 -04:00
# Now copy in the code
COPY . $REPO
2016-07-24 14:08:47 -04:00
RUN go install ./cmd/tendermint
2016-07-24 14:08:47 -04:00
# expose the volume for debugging
VOLUME $REPO
2016-07-24 14:08:47 -04:00
EXPOSE 46656
EXPOSE 46657