-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnodeos.sh
More file actions
executable file
·30 lines (26 loc) · 925 Bytes
/
nodeos.sh
File metadata and controls
executable file
·30 lines (26 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# Home inside docker
NODEOS_HOME=/root/.local/share/eosio/nodeos
# WAX data folder root on the host running this docker image
HOST_WAX_HOME=`pwd`
if [ -z "$1" ]; then
docker run -t --sig-proxy=true --name nodeos \
-v $HOST_WAX_HOME/data:$NODEOS_HOME/data \
-v $HOST_WAX_HOME/config.ini:$NODEOS_HOME/config/config.ini \
-v $HOST_WAX_HOME/genesis.json:$NODEOS_HOME/config/genesis.json \
-p 8888:8888 \
-p 9876:9876 \
--rm -it waxteam/production:v2.0.13wax03 \
nodeos
else
echo "start from snapshot: $1"
docker run -t --sig-proxy=true --name nodeos \
-v $HOST_WAX_HOME/data:$NODEOS_HOME/data \
-v $HOST_WAX_HOME/config.ini:$NODEOS_HOME/config/config.ini \
-v $HOST_WAX_HOME/genesis.json:$NODEOS_HOME/config/genesis.json \
-v $HOST_WAX_HOME/$1:$NODEOS_HOME/$1 \
-p 8888:8888 \
-p 9876:9876 \
--rm -it waxteam/production:v2.0.13wax03 \
nodeos --snapshot $NODEOS_HOME/$1
fi