Browse Source

Improved README.md

pull/192/head
Jae Kwon 9 years ago
parent
commit
f9da9fbfed
2 changed files with 9 additions and 19 deletions
  1. +9
    -4
      DOCKER/README.md
  2. +0
    -15
      DOCKER/docker.sh

+ 9
- 4
DOCKER/README.md View File

@ -1,8 +1,13 @@
# Build and run a docker image and container
```
cd DOCKER
./docker.sh
```
# Build base Docker image
# Make sure ./run.sh exists.
docker build -t tendermint/tmbase -f Dockerfile .
# Log into dockerhub
docker login
See DOCKER/docker.sh for more information
# Push latest build to dockerhub
docker push tendermint/tmbase
```

+ 0
- 15
DOCKER/docker.sh View File

@ -1,15 +0,0 @@
#! /bin/bash
# Build base Docker image
cd $GOPATH/src/github.com/tendermint/tendermint/DOCKER
docker build -t tmbase -f Dockerfile .
# Create the data-only container
# (config and blockchain data go in here)
docker run --name tmdata --entrypoint /bin/echo tmbase Data-only container for tmnode
# Run tendermint node
docker run --name tmnode --volumes-from tmdata -d -p 46656:46656 -p 46657:46657 -e TMSEEDS="goldenalchemist.chaintest.net:46657" -e TMNAME="testnode" -e TMREPO="github.com/tendermint/tendermint" -e TMHEAD="origin/develop" tmbase
# Cleanup
# docker rm -v -f tmdata tmnode; docker rmi -f tmbase

Loading…
Cancel
Save