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.

21 lines
616 B

10 years ago
10 years ago
10 years ago
  1. #! /bin/bash
  2. # don't build if you're impatient
  3. if [[ ! $NO_BUILD ]]; then
  4. cd $GOPATH/src/github.com/tendermint/tendermint
  5. docker build -t mint -f DOCKER/Dockerfile .
  6. fi
  7. # create the data-only container
  8. if [[ ! $VD ]]; then
  9. docker run --name mintdata --entrypoint /bin/echo mint Data-only container for mint
  10. fi
  11. # copy a directory from host to data-only volume
  12. if [[ $VC ]]; then
  13. cd $VC
  14. tar cf - . | docker run -i --rm --volumes-from mintdata mint tar xvf - -C /data/tendermint
  15. fi
  16. # run tendermint
  17. docker run --name mint --volumes-from mintdata -d -p 46656:46656 -p 46657:46657 -e FAST_SYNC=$FAST_SYNC mint