mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
docker fixups
This commit is contained in:
parent
6a0223641f
commit
6265e39bff
@ -37,5 +37,5 @@ USER tendermint
|
||||
ENV TMROOT $data_root
|
||||
|
||||
# run tendermint
|
||||
CMD ["./run.sh"]
|
||||
CMD ["./DOCKER/run.sh"]
|
||||
|
||||
|
@ -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`
|
||||
|
@ -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…
x
Reference in New Issue
Block a user