-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-fullnode.sh
53 lines (40 loc) · 2.11 KB
/
install-fullnode.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# run with
# sshnode "bash -s" < ./install-fullnode.sh
# install per software requirements https://docs.sui.io/build/fullnode#full-node-setup
sudo apt-get update -y\
&& sudo apt-get install -y --no-install-recommends \
tzdata \
libprotobuf-dev \
ca-certificates \
build-essential \
libssl-dev \
libclang-dev \
pkg-config \
openssl \
protobuf-compiler \
git \
clang \
cmake
# install docker https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
sudo apt update -y
sudo apt install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common emacs jq unzip -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -y
sudo apt install docker-ce -y
sudo systemctl status docker
# install docker-compose https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# install postgres, cargo and diesel
sudo apt install -y postgresql postgresql-contrib libpq-dev pq cargo
cargo install diesel_cli --no-default-features --features postgres
# install fullnode https://github.com/MystenLabs/sui/tree/main/docker/fullnode
#wget https://raw.githubusercontent.com/MystenLabs/sui/main/docker/fullnode/docker-compose.yaml
#wget https://raw.githubusercontent.com/MystenLabs/sui/devnet-0.27.1/crates/sui-config/data/fullnode-template.yaml -O ./fullnode-template.yaml
#wget https://github.com/MystenLabs/sui/raw/main/crates/sui-config/data/fullnode-template.yaml
#wget https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob
# start detached
#sudo docker-compose up -d
--db-url postgres://postgres:Jurt3odtibis@summary.cubsklniptgt.eu-central-1.rds.amazonaws.com:5432/dev?options=-c search_path%3Dsui_devnet --rpc-client-url https://fullnode.devnet.sui.io:443 --fullnode-sync-worker