Skip to content

Commit

Permalink
ugraded script for Quorum 2.0.0 and Constellation 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arocha committed Nov 15, 2017
1 parent 7164566 commit f3eca16
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
27 changes: 19 additions & 8 deletions scripts/bootstrap.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,32 @@ sudo apt-get update && sudo apt-get install -y
#INSTALACION DE LIBRERIAS
sudo apt-get install -y software-properties-common unzip wget git make gcc libsodium-dev build-essential libdb-dev zlib1g-dev libtinfo-dev sysvbanner wrk psmisc

#LEVELDB FIX
git clone https://github.com/google/leveldb.git
cd leveldb/
make
sudo scp -r out-static/lib* out-shared/lib* /usr/local/lib/
cd include/
sudo scp -r leveldb /usr/local/include/
sudo ldconfig
cd ../..
rm -r leveldb

#INSTALACION ETHEREUM
sudo add-apt-repository -y ppa:ethereum/ethereum && sudo apt-get update && sudo apt-get install -y solc
sudo add-apt-repository -y ppa:ethereum/ethereum && sudo add-apt-repository -y ppa:ethereum/ethereum-dev && sudo apt-get update && sudo apt-get install -y solc

#INSTALACION CONSTELLATION 0.1.0
wget -q https://github.com/jpmorganchase/constellation/releases/download/v0.1.0/constellation-0.1.0-ubuntu1604.tar.xz
unxz constellation-0.1.0-ubuntu1604.tar.xz
tar -xf constellation-0.1.0-ubuntu1604.tar
sudo cp constellation-0.1.0-ubuntu1604/constellation-node /usr/local/bin && sudo chmod 0755 /usr/local/bin/constellation-node
sudo rm -rf constellation-0.1.0-ubuntu1604.tar.xz constellation-0.1.0-ubuntu1604.tar constellation-0.1.0-ubuntu1604
wget -q https://github.com/jpmorganchase/constellation/releases/download/v0.2.0/constellation-0.2.0-ubuntu1604.tar.xz
unxz constellation-0.2.0-ubuntu1604.tar.xz
tar -xf constellation-0.2.0-ubuntu1604.tar
sudo cp constellation-0.2.0-ubuntu1604/constellation-node /usr/local/bin && sudo chmod 0755 /usr/local/bin/constellation-node
sudo rm -rf constellation-0.2.0-ubuntu1604.tar.xz constellation-0.2.0-ubuntu1604.tar constellation-0.2.0-ubuntu1604

#INSTALACION DE QUORUM
git clone https://github.com/jpmorganchase/quorum.git
cd quorum && git checkout tags/v1.1.0 && make all && cp build/bin/geth /usr/local/bin && cp build/bin/bootnode /usr/local/bin
cd quorum && git checkout tags/v2.0.0 && make all && cp build/bin/geth /usr/local/bin && cp build/bin/bootnode /usr/local/bin

cd ..
sudo rm -rf constellation-0.1.0-ubuntu1604.tar.xz constellation-0.1.0-ubuntu1604.tar constellation-0.1.0-ubuntu1604 quorum
sudo rm -rf constellation-0.2.0-ubuntu1604.tar.xz constellation-0.2.0-ubuntu1604.tar constellation-0.2.0-ubuntu1604 quorum

set +e
4 changes: 3 additions & 1 deletion scripts/init.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ echo "Passw0rd" > ~/alastria/data/passwords.txt
echo "[*] Initializing quorum"
geth --datadir ~/alastria/data init ~/alastria-node/data/genesis.json
cd ~/alastria/data/geth
ENODE_KEY=$(bootnode -genkey nodekey -writeaddress)
bootnode -genkey nodekey
ENODE_KEY=$(bootnode -nodekey nodekey -writeaddress)
echo "ENODE -> ${ENODE_KEY}"
cd ~
update_static_nodes "enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?raftport=41000"
cp ~/alastria-node/data/static-nodes.json ~/alastria/data/static-nodes.json
Expand Down

0 comments on commit f3eca16

Please sign in to comment.