You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
907 B

  1. FROM golang:1.15
  2. # Grab deps (jq, hexdump, xxd, killall)
  3. RUN apt-get update && \
  4. apt-get install -y --no-install-recommends \
  5. jq bsdmainutils vim-common psmisc netcat curl
  6. # Setup tendermint repo
  7. ENV REPO $GOPATH/src/github.com/tendermint/tendermint
  8. ENV GOBIN $GOPATH/bin
  9. WORKDIR $REPO
  10. # Copy in the code
  11. # TODO: rewrite to only copy Makefile & other files?
  12. COPY . $REPO
  13. # Install the vendored dependencies
  14. # docker caching prevents reinstall on code change!
  15. RUN make tools
  16. # install ABCI CLI
  17. RUN make install_abci
  18. # install Tendermint
  19. RUN make install
  20. RUN tendermint testnet \
  21. --config $REPO/test/docker/config-template.toml \
  22. --node-dir-prefix="mach" \
  23. --v=4 \
  24. --populate-persistent-peers=false \
  25. --o=$REPO/test/p2p/data
  26. # Now copy in the code
  27. # NOTE: this will overwrite whatever is in vendor/
  28. COPY . $REPO
  29. # expose the volume for debugging
  30. VOLUME $REPO
  31. EXPOSE 26656
  32. EXPOSE 26657