tendermint/test/docker/Dockerfile

39 lines
927 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
# Install the vendored dependencies before copying code
# docker caching prevents reinstall on code change!
ADD Gopkg.toml Gopkg.toml
ADD Gopkg.lock Gopkg.lock
ADD Makefile Makefile
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
2017-03-05 17:39:52 -08:00
# Install the apps
ADD scripts scripts
RUN bash scripts/install_abci_apps.sh
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
RUN go install ./cmd/tendermint
2016-07-24 11:08:47 -07:00
# expose the volume for debugging
VOLUME $REPO
EXPOSE 26656
EXPOSE 26657