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.

25 lines
711 B

10 years ago
10 years ago
10 years ago
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. if [ `basename $(pwd)` = DOCKER ]; then
  5. docker build -t mint -f Dockerfile ..
  6. else
  7. # cd $GOPATH/src/github.com/tendermint/tendermint
  8. docker build -t mint -f DOCKER/Dockerfile .
  9. fi
  10. fi
  11. # create the data-only container
  12. if [[ ! $VD ]]; then
  13. docker run --name mintdata --entrypoint /bin/echo mint Data-only container for mint
  14. fi
  15. # copy a directory from host to data-only volume
  16. if [[ $VC ]]; then
  17. cd $VC
  18. tar cf - . | docker run -i --rm --volumes-from mintdata mint tar xvf - -C /data/tendermint
  19. fi
  20. # run tendermint
  21. docker run --name mint --volumes-from mintdata -d -p 46656:46656 -p 46657:46657 -e FAST_SYNC=$FAST_SYNC mint