forked from AgentJ-WR/prysmatic_bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eth2stats.sh
executable file
·29 lines (22 loc) · 898 Bytes
/
eth2stats.sh
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
#!/bin/sh
#If docker isn't installed... don't just uncomment this, it'll need to be step by step.
# curl -fsSL https://get.docker.com -o get-docker.sh
# sh get-docker.sh
# sudo apt install -y docker-compose
# sudo usermod -aG docker $USER
#This will stop any currently running docker image for ethstats
docker stop eth2stats
docker rm eth2stats
#Update the image
docker pull alethio/eth2stats-client:latest
#start/restart the image
docker run -d --name eth2stats --restart always --network="host" \
-v ~/eth2stats/data:/data \
alethio/eth2stats-client:latest \
run --v \
--eth2stats.node-name="superphiz script" \
--data.folder="$HOME/prysm" \
--eth2stats.addr="grpc.sapphire.eth2stats.net:443" \
--beacon.metrics-addr="http://localhost:8080/metrics" \
--eth2stats.tls=true \
--beacon.type="prysm" --beacon.addr="localhost:4000"