updated provisioning files
This commit is contained in:
parent
d2c7f4ff9a
commit
cba948231c
47
bin/build.sh
47
bin/build.sh
@ -3,15 +3,20 @@
|
|||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
# let's install packages
|
# let's install packages
|
||||||
sudo apt-get update
|
sudo apt-get -y update
|
||||||
sudo apt-get upgrade
|
sudo apt-get -y install language-pack-en-base
|
||||||
sudo apt-get -y install build-essential g++-4.8 git cmake libboost-all-dev automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons libncurses5-dev libcurl4-openssl-dev wget qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev libjsoncpp-dev libargtable2-dev nodejs npm
|
sudo dpkg-reconfigure locales
|
||||||
|
sudo apt-get -y install software-properties-common
|
||||||
|
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
|
sudo add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5-binaries main"
|
||||||
|
|
||||||
# Setup Ethereum repos
|
# Setup Ethereum repos
|
||||||
sudo add-apt-repository -y ppa:ethereum/ethereum
|
sudo add-apt-repository -y ppa:ethereum/ethereum
|
||||||
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
|
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
|
||||||
sudo apt-get update
|
sudo apt-get -y update
|
||||||
sudo apt-get install libcryptopp-dev libjson-rpc-cpp-dev
|
sudo apt-get -y upgrade
|
||||||
|
|
||||||
|
sudo apt-get -y install build-essential g++-4.8 git cmake libboost-all-dev automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons libncurses5-dev libcurl4-openssl-dev wget qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev libcryptopp-dev libjson-rpc-cpp-dev libmicrohttpd-dev libjsoncpp-dev libargtable2-dev clang-3.5 lldb-3.5
|
||||||
|
|
||||||
# add node symlink
|
# add node symlink
|
||||||
sudo ln -s /usr/bin/nodejs /usr/bin/node
|
sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
@ -27,33 +32,27 @@ cd ethereum
|
|||||||
[ ! -d "cpp-ethereum" ] && git clone --depth=1 --branch develop https://github.com/ethereum/cpp-ethereum
|
[ ! -d "cpp-ethereum" ] && git clone --depth=1 --branch develop https://github.com/ethereum/cpp-ethereum
|
||||||
|
|
||||||
# download and build ethereum's dependencies
|
# download and build ethereum's dependencies
|
||||||
cd ~/opt
|
# cd ~/opt
|
||||||
if [ ! -d "cryptopp562" ]; then
|
# if [ ! -d "cryptopp562" ]; then
|
||||||
mkdir cryptopp562
|
# mkdir cryptopp562
|
||||||
cd cryptopp562
|
# cd cryptopp562
|
||||||
wget http://www.cryptopp.com/cryptopp562.zip
|
# wget http://www.cryptopp.com/cryptopp562.zip
|
||||||
unzip cryptopp562.zip
|
# unzip cryptopp562.zip
|
||||||
CXX="g++ -fPIC" make
|
# CXX="g++ -fPIC" make
|
||||||
make dynamic
|
# make dynamic
|
||||||
sudo make install
|
# sudo make install
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# build ethereum
|
# build ethereum
|
||||||
cd ~/opt
|
cd ~/opt
|
||||||
mkdir cpp-ethereum-build
|
mkdir cpp-ethereum-build
|
||||||
cd cpp-ethereum-build
|
cd cpp-ethereum-build
|
||||||
cmake ~/ethereum/cpp-ethereum -DCMAKE_BUILD_TYPE=Debug
|
# cmake ~/ethereum/cpp-ethereum -DCMAKE_BUILD_TYPE=Debug
|
||||||
make
|
cmake ~/ethereum/cpp-ethereum -DHEADLESS=1 -DEVMJIT=1 -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
make -j2
|
||||||
# build alethzero GUI client
|
|
||||||
mkdir alethzero
|
|
||||||
cd alethzero
|
|
||||||
qmake ~/ethereum/cpp-ethereum/alethzero
|
|
||||||
make
|
|
||||||
|
|
||||||
# now let's create bin folder in user's home dir and create symlinks to executables
|
# now let's create bin folder in user's home dir and create symlinks to executables
|
||||||
cd ~
|
cd ~
|
||||||
ln -s ~/opt/cpp-ethereum-build/alethzero/alethzero ~/bin/alethzero
|
|
||||||
ln -s ~/opt/cpp-ethereum-build/eth/eth ~/bin/eth
|
ln -s ~/opt/cpp-ethereum-build/eth/eth ~/bin/eth
|
||||||
|
|
||||||
# install cloud-utils to fetch instance meta-data
|
# install cloud-utils to fetch instance meta-data
|
||||||
|
@ -19,15 +19,13 @@
|
|||||||
"merge_logs" : true,
|
"merge_logs" : true,
|
||||||
"watch" : false,
|
"watch" : false,
|
||||||
"exec_interpreter" : "node",
|
"exec_interpreter" : "node",
|
||||||
"exec_mode" : "cluster_mode",
|
"exec_mode" : "fork_mode",
|
||||||
"env":
|
"env":
|
||||||
{
|
{
|
||||||
"NODE_ENV" : "production",
|
"NODE_ENV" : "production",
|
||||||
"RPC_HOST" : "localhost",
|
"RPC_HOST" : "localhost",
|
||||||
"RPC_PORT" : "8080",
|
"RPC_PORT" : "8080",
|
||||||
"ETH_CLIENT" : "",
|
"WS_SERVER" : "wss://eth-netstats-dev.herokuapp.com",
|
||||||
"ETH_TYPE" : "C++ 0.8.1",
|
|
||||||
"SOCKET_HOST" : "eth-netstats.herokuapp.com",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user