Skip to content

Commit

Permalink
detach flag
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevtg committed Dec 20, 2017
1 parent 44a2679 commit c54c9ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
File renamed without changes.
3 changes: 2 additions & 1 deletion runnode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
IMGNAME="ethereum/client-go:v1.7.3"
NODE_NAME=$1
NODE_NAME=${NODE_NAME:-"node1"}
DETACH_FLAG=${DETACH_FLAG:-"-d"}
CONTAINER_NAME="ethereum-$NODE_NAME"
DATA_ROOT=${DATA_ROOT:-"$(pwd)/.ether-$NODE_NAME"}
DATA_HASH=${DATA_HASH:-"$(pwd)/.ethash"}
Expand All @@ -28,7 +29,7 @@ if [ ! -d $DATA_ROOT/keystore ]; then
echo "...done!"
fi
echo "Running new container $CONTAINER_NAME..."
docker run -d --name $CONTAINER_NAME \
docker run $DETACH_FLAG --name $CONTAINER_NAME \
--network ethereum \
-v $DATA_ROOT:/root/.ethereum \
-v $DATA_HASH:/root/.ethash \
Expand Down
5 changes: 5 additions & 0 deletions runsealer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
NODE_NAME=$1
NODE_NAME=${NODE_NAME:-"miner1"}
ETHERBASE=${ETHERBASE:-"0x0000000000000000000000000000000000000001"}
./runnode.sh $NODE_NAME --mine --unlock="$ETHERBASE"

0 comments on commit c54c9ba

Please sign in to comment.