File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eu -o pipefail
3
+
4
+ # install build deps
5
+ add-apt-repository ppa:ethereum/ethereum
6
+ apt-get update
7
+ apt-get install -y build-essential unzip libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk software-properties-common default-jdk maven
8
+
9
+ # install golang
10
+ GOREL=go1.9.3.linux-amd64.tar.gz
11
+ wget -q https://dl.google.com/go/${GOREL}
12
+ tar xfz ${GOREL}
13
+ mv go /usr/local/go
14
+ rm -f ${GOREL}
15
+ PATH=$PATH :/usr/local/go/bin
16
+ echo ' PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.bashrc
17
+
18
+ # make/install quorum
19
+ git clone https://github.com/jpmorganchase/quorum.git
20
+ pushd quorum > /dev/null
21
+ make all
22
+ cp build/bin/geth /usr/local/bin
23
+ cp build/bin/bootnode /usr/local/bin
24
+ popd > /dev/null
25
+
26
+
27
+ sudo chgrp -R vagrant quorum
28
+ sudo chown -R vagrant quorum
29
+
30
+ echo ' Quorum source ready'
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ chmod 0755 ${POROSITY_OUTPUT_FILE}
58
58
cp -r /vagrant/examples /home/vagrant/quorum-examples
59
59
chown -R vagrant:vagrant /home/vagrant/quorum-examples
60
60
61
+ # from source script
62
+ cp /vagrant/go-source.sh /home/vagrant/go-source.sh
63
+ chown vagrant:vagrant /home/vagrant/go-source.sh
64
+
61
65
# done!
62
66
echo "
63
67
____ _ ____ ____ _ _
You can’t perform that action at this time.
0 commit comments