-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
21 lines (18 loc) · 1.19 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# check if ghcr.io/multisig-labs/gogopro-container exists
# if it does not exist, build it
if ! docker inspect ghcr.io/multisig-labs/gogopro-container:latest > /dev/null 2>&1; then
docker pull ghcr.io/multisig-labs/gogopro-container:latest
fi
# check if there is a volume called avalanche-data
# if there is not, create it
if ! docker volume inspect avalanche-data > /dev/null 2>&1; then
docker volume create avalanche-data
fi
# list of directories that need mounted
# /root/.avalanchego/config needs mounted to local directory /root/avalanchego-config
# mount /root/.avalanchego/chainData to avalanchego-data/chainData
# mount /root/.avalanchego/db to avalanchego-data/db
# mount /root/.avalanchego/logs to local directory /root/avalanchego-logs
# mount /root/.avalanchego/staking to local directory /root/avalanchego-staking
docker run --rm -it -v avalanche-data:/root/.avalanchego/chainData -v avalanche-data:/root/.avalanchego/db -v avalanche-data:/root/.avalanchego/staking -v /root/avalanchego-config:/root/.avalanchego/config -v /root/avalanchego-logs:/root/.avalanchego/logs -p 9650:9650 -p 9651:9651 -p 9652:9652 -p 9653:9653 ghcr.io/multisig-labs/gogopro-container --network-id=fuji