forked from P-OPSTeam/axelar-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testnetaxelar-rootless.sh
47 lines (34 loc) · 983 Bytes
/
testnetaxelar-rootless.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
# update repository's
echo updating ubuntu Repository's
sudo apt-get update 2> /dev/null
# upgrade node
echo upgrading ubuntu
sudo apt-get upgrade -y 2> /dev/null
# install docker dependencies
echo installing dependencies for docker
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release 2> /dev/null
sudo apt-get install -y \
newuidmap \
newgidmap \
dbus-user-session 2> /dev/null
# Curl docker GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
id -u
whoami
grep ^$(whoami): /etc/subuid
grep ^$(whoami): /etc/subgid
echo Installing rootless docker
curl -fsSL https://get.docker.com/rootless | sh
echo enabling docker to start at boot
systemctl --user enable docker
sudo loginctl enable-linger $(whoami)
# install jq
sudo apt-get install jq -y 2> /dev/null
# run the validator
sudo bash run.sh reset
echo setup is finished