-
Notifications
You must be signed in to change notification settings - Fork 6
/
prerequisites.sh
36 lines (18 loc) · 1.05 KB
/
prerequisites.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
sudo apt-get update -y && sudo apt-get install \
-y git wget python3.5 python3-pip python-setuptools \
python3-nacl apt-transport-https ca-certificates
sudo pip3 install -U 'pip<10.0.0' setuptools
sudo apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys CE7709D068DB5E88
sudo apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys BD33704C
sudo bash -c \
'echo "deb https://repo.sovrin.org/deb xenial master" >> /etc/apt/sources.list'
sudo bash -c \
'echo "deb https://repo.sovrin.org/sdk/deb xenial master" >> /etc/apt/sources.list'
sudo apt-get update -y && sudo apt-get install -y \
indy-node=1.13.0~dev1213 libindy-crypto=0.4.5 python3-indy-crypto=0.4.5 python3-orderedset=2.0 python3-psutil=5.4.3 python3-pympler=0.5 indy-plenum=1.13.0~dev1021 libindy=1.15.0~1536-xenial indy-cli=1.15.0~1536-xenial
sudo pip3 install python3-indy==1.15.0
sudo awk \
'{if (index($1, "NETWORK_NAME") != 0) {print("NETWORK_NAME = \"sandbox\"")} else print($0)}' /etc/indy/indy_config.py> /tmp/indy_config.py
sudo mv /tmp/indy_config.py /etc/indy/indy_config.py