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.

20 lines
541 B

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