Skip to content
Snippets Groups Projects
Commit 6b3f4b90 authored by androlo's avatar androlo
Browse files

some docker script

parent ac4b7582
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ Tendermint officially supports only 64 bit Ubuntu.
#### Docker
WIP
`$ ./docker_build.sh` to build the image. After that, use ` $ ./docker_run.sh` to run with the default settings.
### Usage
......
#! /bin/bash
#! /bin/sh
docker build -t eris-db .
\ No newline at end of file
docker_run.sh 100644 → 100755
# run eris-db
docker run --name eris-db -v -p 46656:46656 -p 46657:46657 -p 1337:1337 eris-db
#!/bin/bash
# Using ~/.eris on drive.
ERIS_PATH=$HOME/.eris
CONTAINER="eris-db"
RUNNING=$(docker inspect --format="{{ .State.Running }}" eris-db)
mkdir -v -p $ERIS_PATH
# Run in the terminal and attach on start.
if [ "$RUNNING" == "true" ]; then
echo "Container 'eris-db' already running. Exiting."
exit 1
elif [ "$RUNNING" == "false" ]; then
echo "Container 'eris-db' found. Starting."
docker start --attach=true eris-db
else
echo "Container 'eris-db' not found. Creating."
docker run --name eris-db -v $ERIS_PATH:/home/eris/.eris -p 46656:46656 -p 46657:46657 -p 1337:1337 eris-db
fi
\ No newline at end of file
#!/bin/sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment