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
751 B

10 years ago
10 years ago
10 years ago
  1. #! /bin/bash
  2. # Build base Docker image
  3. cd $GOPATH/src/github.com/tendermint/tendermint/DOCKER
  4. docker build -t tmbase -f Dockerfile .
  5. # Create the data-only container
  6. # (config and blockchain data go in here)
  7. docker run --name tmdata --entrypoint /bin/echo tmbase Data-only container for tmnode
  8. # Copy files into the data-only container
  9. # You should stop the containers before running this
  10. # cd $DATA_SRC
  11. # tar cf - . | docker run -i --rm --volumes-from mintdata mint tar xvf - -C /data/tendermint
  12. # Run tendermint node
  13. docker run name tmnode --volumes-from tmdata -d -p 46656:46656 -p 46657:46657 -e TMREPO="github.com/tendermint/tendermint" -e TMHEAD="origin/develop" tmbase
  14. # Cleanup
  15. # docker rm -v -f tmdata tmnode; docker rmi -f tmbase