Skip to content

Commit

Permalink
english, please
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevtg committed Sep 11, 2016
1 parent 53a4827 commit 96dcf94
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 27 deletions.
8 changes: 3 additions & 5 deletions bootnode.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/sh
#
# Executa bootnode
# Runs a bootnode
#
# Se houver NET_ID repassa para o container como --environment
# Senão vale o default do Dockerfile:
# NET_ID=1972
# If there is a NET_ID variable it is passed on to the container.
#
docker stop ethereum-bootnode
docker rm ethereum-bootnode
Expand All @@ -19,4 +17,4 @@ docker run -d --name ethereum-bootnode \
-e "RUN_BOOTNODE=true" \
$NET_ARG \
$GEN_ARG \
bacen/ethereum --verbosity=3
vertigo/ethereum --verbosity=3
11 changes: 2 additions & 9 deletions killall.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#!/bin/sh
docker stop ethereum-node
docker rm ethereum-node
docker stop ethereum-node2
docker rm ethereum-node2
docker stop ethereum-miner
docker rm ethereum-miner
docker stop ethereum-bootnode
docker rm ethereum-bootnode

docker stop $(docker ps -q -f name=ethereum)
docker rm $(docker ps -aq -f name=ethereum)
14 changes: 4 additions & 10 deletions runconsole.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/bin/bash
IMGVERSION=$(head -n 1 .IMGVERSION)
IMG_VERSION=${IMG_VERSION:-"latest"}
IMGNAME=$(head -n 1 .IMGNAME)
ARGPROXY=
[[ ! -z "$http_proxy" ]] && ARGPROXY="-e 'http_proxy=$http_proxy'"
[[ ! -z "$https_proxy" ]] && ARGPROXY="$ARGPROXY -e 'https_proxy=$https_proxy'"
[[ ! -z "$no_proxy" ]] && ARGPROXY="$ARGPROXY -e 'no_proxy=$no_proxy'"
docker run --rm -ti --net=host $ARGPROXY \
$IMGNAME:$IMGVERSION console
#!/bin/sh
NODE=$1
NODE=${NODE:-"ethereum-node1"}
docker exec -ti "$NODE" geth attach
6 changes: 3 additions & 3 deletions runnode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
NODE_NAME=$1
NODE_NAME=${NODE_NAME:-"node1"}
CONTAINER_NAME="ethereum-$NODE_NAME"
echo "Destruindo container antigo $CONTAINER_NAME..."
echo "Destroying old container $CONTAINER_NAME..."
docker stop $CONTAINER_NAME
docker rm $CONTAINER_NAME
NET_ARG=
GEN_ARG=
[[ ! -z $NET_ID ]] && NET_ARG="-e NET_ID=$NET_ID"
[[ ! -z $GEN_ALLOC ]] && GEN_ARG="-e GEN_ALLOC=$GEN_ALLOC"
BOOTNODE_URL=${BOOTNODE_URL:-$(./getbootnodeurl.sh)}
echo "Executando novo container $CONTAINER_NAME..."
echo "Running new container $CONTAINER_NAME..."
docker run -d --name $CONTAINER_NAME \
-v $(pwd)/.ether-$NODE_NAME:/root \
-e "BOOTNODE_URL=$BOOTNODE_URL" \
$NET_ARG \
$GEN_ARG \
bacen/ethereum --identity $NODE_NAME --cache=512 --verbosity=5 --maxpeers=3 ${@:2}
vertigo/ethereum --identity $NODE_NAME --cache=512 --verbosity=5 --maxpeers=3 ${@:2}

0 comments on commit 96dcf94

Please sign in to comment.