tendermint/test/docker/Dockerfile
Dev Ojha 9cfc47a93b makefile: Add make check_dep and remove make ensure_deps (#2055)
This adds a new makefile command, which is used in CI linting, `make check_dep`.
This ensures the toml is in sync with the lock, and that were not pinning to a
branch in any repository.

This also adapts `make get_vendor_deps` to check the lock, in addition to
populating the vendor directory. This removes the need for `make ensure_deps`.

This makes `make get_vendor_deps` consistent between tendermint and the sdk.
2018-07-25 18:09:52 +02:00

32 lines
735 B
Docker

FROM golang:1.10
# 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)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
jq bsdmainutils vim-common psmisc netcat curl
# Setup tendermint repo
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
ENV GOBIN $GOPATH/bin
WORKDIR $REPO
# Copy in the code
COPY . $REPO
# Install the vendored dependencies
# docker caching prevents reinstall on code change!
RUN make get_tools
RUN make get_vendor_deps
RUN go install ./cmd/tendermint
RUN go install ./abci/cmd/abci-cli
# expose the volume for debugging
VOLUME $REPO
EXPOSE 26656
EXPOSE 26657