forked from waffle-iron/QuorumNetworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
50 lines (41 loc) · 1.45 KB
/
setup.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
#!/bin/bash
sudo apt-get update;
sudo apt-get install -y build-essential libssl-dev git curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
wget https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
sudo tar -xvf go1.7.linux-amd64.tar.gz
sudo cp -r go/ /usr/local/
sudo rm -rf go/ go1.7.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/projects/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install -y ethereum
sudo mv /usr/bin/geth /usr/bin/normalGeth
git clone https://github.com/jpmorganchase/quorum.git
cd quorum/
make all
echo "PATH=\$PATH:"$PWD/build/bin >> ~/.bashrc
source ~/.bashrc
export PATH=$PWD/build/bin:$PATH
cd ..
mkdir constellation && cd constellation/
sudo apt-get install -y libdb-dev libsodium-dev zlib1g-dev libtinfo-dev unzip
wget https://github.com/jpmorganchase/constellation/releases/download/v0.0.1-alpha/ubuntu1604.zip
unzip ubuntu1604.zip
chmod +x ubuntu1604/constellation-node
chmod +x ubuntu1604/constellation-enclave-keygen
echo "PATH=\$PATH:"$PWD/ubuntu1604 >> ~/.bashrc
source ~/.bashrc
export PATH=$PWD/ubuntu1604:$PATH
cd ..
git clone https://github.com/davebryson/quorum-genesis.git
cd quorum-genesis/
sudo npm install -g
cd ..
git clone https://github.com/consensys/QuorumNetworkManager.git
cd QuorumNetworkManager/
npm install