-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
41 lines (31 loc) · 1.16 KB
/
init.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
#!/bin/bash
# CentOS
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
yum install -y yum-utils
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install -y wget tmux iptables git python38 python3-devel
yum install -y docker-ce docker-ce-cli containerd.io iptables
iptables -t nat -N DOCKER
systemctl start docker
systemctl enable docker
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py
pip install docker-compose
mkdir -p /root/geth/data /root/clef/data /root/nucypher/data
git clone https://github.com/adshao/nucypher-scripts
cp nucypher-scripts/docker-compose.yaml* .
cp nucypher-scripts/rules.js /root/clef/
cat <<EOF >> ~/.bashrc
alias geth='docker-compose run --rm geth /usr/local/bin/geth'
alias clef='docker-compose run --rm clef'
alias nucypher='docker-compose run --rm nucypher nucypher'
alias ursula='docker-compose run --rm nucypher nucypher ursula'
EOF
git clone https://github.com/p2p-org/nucypher-monitoring.git
cur_dir=$(pwd)
cd nucypher-monitoring
chmod 755 install-prometheus-node-exporter.sh
./install-prometheus-node-exporter.sh
cd $cur_dir