2018-05-16 01:24:46 -07:00
|
|
|
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
|
|
|
|
|
2016-09-10 17:11:45 -07:00
|
|
|
# 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
|
2016-09-10 17:11:45 -07:00
|
|
|
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
|
2018-03-06 06:32:52 -08:00
|
|
|
ENV GOBIN $GOPATH/bin
|
2016-09-10 17:11:45 -07:00
|
|
|
WORKDIR $REPO
|
2017-03-05 11:59:02 -08:00
|
|
|
|
2018-07-25 09:09:52 -07: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
|
2018-03-08 06:52:38 -08:00
|
|
|
# NOTE: this will overwrite whatever is in vendor/
|
2016-09-10 17:11:45 -07:00
|
|
|
COPY . $REPO
|
2016-07-24 11:08:47 -07:00
|
|
|
|
2018-06-26 00:10:54 -07:00
|
|
|
# install ABCI CLI
|
2018-07-24 06:42:08 -07:00
|
|
|
RUN make install_abci
|
2018-06-26 00:10:54 -07:00
|
|
|
|
2018-07-24 06:42:08 -07:00
|
|
|
# install Tendermint
|
|
|
|
RUN make install
|
2016-07-24 11:08:47 -07:00
|
|
|
|
2016-12-22 16:30:09 -08:00
|
|
|
# expose the volume for debugging
|
|
|
|
VOLUME $REPO
|
|
|
|
|
2018-06-12 02:25:52 -07:00
|
|
|
EXPOSE 26656
|
|
|
|
EXPOSE 26657
|