-
Notifications
You must be signed in to change notification settings - Fork 1
/
BiFrost
75 lines (60 loc) · 2.3 KB
/
BiFrost
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo -i
cd $HOME
apt update && apt install curl -y && apt purge docker docker-engine docker.io containerd docker-compose -y
rm /usr/bin/docker-compose /usr/local/bin/docker-compose
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
systemctl restart docker
curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
mkdir -p /var/lib/bifrost-data
docker run -d -p 30333:30333 -p 9933:9933 -v "/var/lib/bifrost-data:/data" --name "bifrost" thebifrost/bifrost-node:latest --base-path /data --chain /specs/bifrost-testnet.json --port 30333 --validator --state-cache-size 0 --runtime-cache-size 64 --telemetry-url "wss://telemetry-connector.testnet.thebifrost.io/submit 0" --name "CONTROLLER"
Logs
docker logs -f bifrost
docker exec -it bifrost /bin/bash
cd tools
npm install
npm install -g [email protected]
npm run set_session_keys -- \
--controllerPrivate "YOUR_CONTROLLER_PRIVATE_KEY"
npm run join_validators -- \
--controllerPrivate "YOUR_CONTROLLER_PRIVATE_KEY" \
--stashPrivate "YOUR_STASH_PRIVATE_KEY" \
--bond "50000"
npm run join_validators -- \
--controllerPrivate "YOUR_CONTROLLER_PRIVATE_KEY" \
--stashPrivate "YOUR_STASH_PRIVATE_KEY" \
--relayerPrivate "YOUR_RELAYER_PRIVATE_KEY" \
--bond "100000"
usefull commands
restart
docker restart bifrost
logs
docker logs -f bifrost
delete node
docker stop bifrost && sudo docker rm bifrost
rm -rf /var/lib/bifrost-data
Week 2 update:
docker stop bifrost
docker rm bifrost
docker pull thebifrost/bifrost-node:v1.0.1
docker run -d --network host -v "/var/lib/bifrost-data:/data" --name "bifrost" thebifrost/bifrost-node:v1.0.1 \
--base-path /data \
--chain /specs/bifrost-testnet.json \
--port 30333 \
--validator \
--state-cache-size 0 \
--runtime-cache-size 64 \
--name "YOUR_CONTROLLER_ADDRESS"
Update:
docker stop bifrost
docker rm bifrost
docker pull thebifrost/bifrost-node:v1.0.1
docker run -d --network host -v "/var/lib/bifrost-data:/data" --name "bifrost" thebifrost/bifrost-node:v1.0.1 \
--base-path /data \
--chain /specs/bifrost-testnet.json \
--port 30333 \
--validator \
--state-cache-size 0 \
--runtime-cache-size 64 \
--name "YOUR_CONTROLLER_ADDRESS"