Skip to content

Commit 3a01dd7

Browse files
committed
Adding install from source optional script
1 parent ec9d05c commit 3a01dd7

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

go-source.sh

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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'

vagrant/bootstrap.sh

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ chmod 0755 ${POROSITY_OUTPUT_FILE}
5858
cp -r /vagrant/examples /home/vagrant/quorum-examples
5959
chown -R vagrant:vagrant /home/vagrant/quorum-examples
6060

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+
6165
# done!
6266
echo "
6367
____ _ ____ ____ _ _

0 commit comments

Comments
 (0)