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.

45 lines
1.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. FROM alpine:3.5
  2. # This is the release of tendermint to pull in.
  3. ENV TM_VERSION 0.8.0
  4. # Tendermint will be looking for genesis file in /tendermint (unless you change
  5. # `genesis_file` in config.toml). You can put your config.toml and private
  6. # validator file into /tendermint.
  7. #
  8. # The /tendermint/data dir is used by tendermint to store state.
  9. ENV DATA_ROOT /tendermint
  10. ENV TMROOT $DATA_ROOT
  11. # Set user right away for determinism
  12. RUN addgroup tmuser && \
  13. adduser -S -G tmuser tmuser
  14. # Create directory for persistence and give our user ownership
  15. RUN mkdir -p $DATA_ROOT && \
  16. chown -R tmuser:tmuser $DATA_ROOT
  17. # jq and curl used for extracting `pub_key` from private validator while
  18. # deploying tendermint with Kubernetes. It is nice to have bash so the users
  19. # could execute bash commands.
  20. RUN apk add --no-cache bash curl jq
  21. RUN apk add --no-cache openssl && \
  22. wget https://s3-us-west-2.amazonaws.com/tendermint/${TM_VERSION}/tendermint_linux_amd64.zip && \
  23. echo "83f6bd52055ebc93434a68263c6666a4de41e0e543d0b5a06ad461262c460f4c tendermint_linux_amd64.zip" | sha256sum -c && \
  24. unzip -d /bin tendermint_linux_amd64.zip && \
  25. apk del openssl && \
  26. rm -f tendermint_linux_amd64.zip
  27. # Expose the data directory as a volume since there's mutable state in there
  28. VOLUME $DATA_ROOT
  29. # p2p port
  30. EXPOSE 46656
  31. # rpc port
  32. EXPOSE 46657
  33. ENTRYPOINT ["tendermint"]
  34. # By default you'll get the dummy app
  35. CMD ["node", "--moniker=`hostname`", "--proxy_app=dummy"]