Browse Source

docker fixups

pull/102/head
Ethan Buchman 9 years ago
parent
commit
6265e39bff
3 changed files with 12 additions and 6 deletions
  1. +1
    -1
      DOCKER/Dockerfile
  2. +6
    -4
      DOCKER/README.md
  3. +5
    -1
      DOCKER/docker.sh

+ 1
- 1
DOCKER/Dockerfile View File

@ -37,5 +37,5 @@ USER tendermint
ENV TMROOT $data_root
# run tendermint
CMD ["./run.sh"]
CMD ["./DOCKER/run.sh"]

+ 6
- 4
DOCKER/README.md View File

@ -8,14 +8,16 @@ mounting it.
# To Play
The commands should work from tendermint/tendermint or tendermint/tendermint/DOCKER,
save the removal of DOCKER from the path.
Get quickly caught up with the testnet: `FAST_SYNC=true ./DOCKER/docker.sh`
Use a pre-existing `~/.tendermint`: `VC=~/.tendermint NO_BUILD=true ./docker.sh`
Use a pre-existing `~/.tendermint`: `VC=~/.tendermint NO_BUILD=true ./DOCKER/docker.sh`
This is like doing `-v ~/.tendermint:/data/tendermint`, but better.
Use `NO_BUILD` to avoid waiting if the image is already built. If you don't use
`NO_BUILD`, you should be in `tendermint/tendermint`, and using `./DOCKER/docker.sh`
Use `NO_BUILD` to avoid waiting if the image is already built.
Rerunning `docker.sh` will require you to delete the old containers:
@ -26,6 +28,6 @@ If you don't use the `VC` option, your key will be deleted too
To avoid deleting and recreating the data container, use
`VD=true NO_BUILD=true ./docker.sh`
`VD=true NO_BUILD=true ./DOCKER/docker.sh`
Of course, once running, you can just control the main container with `docker stop mint` and `docker start mint`

+ 5
- 1
DOCKER/docker.sh View File

@ -2,7 +2,11 @@
# don't build if you're impatient
if [[ ! $NO_BUILD ]]; then
docker build -t mint .
if [ `basename $(pwd)` = DOCKER ]; then
docker build -t mint -f Dockerfile ..
else
docker build -t mint -f DOCKER/Dockerfile .
fi
fi
# create the data-only container


Loading…
Cancel
Save