updated provisioning files

This commit is contained in:
cubedro 2015-02-17 19:22:28 +02:00
parent d2c7f4ff9a
commit cba948231c
2 changed files with 25 additions and 28 deletions

View File

@ -3,15 +3,20 @@
cd ~
# let's install packages
sudo apt-get update
sudo apt-get 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 libjsoncpp-dev libargtable2-dev nodejs npm
sudo apt-get -y update
sudo apt-get -y install language-pack-en-base
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
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 libcryptopp-dev libjson-rpc-cpp-dev
sudo apt-get -y update
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
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
# download and build ethereum's dependencies
cd ~/opt
if [ ! -d "cryptopp562" ]; then
mkdir cryptopp562
cd cryptopp562
wget http://www.cryptopp.com/cryptopp562.zip
unzip cryptopp562.zip
CXX="g++ -fPIC" make
make dynamic
sudo make install
fi
# cd ~/opt
# if [ ! -d "cryptopp562" ]; then
# mkdir cryptopp562
# cd cryptopp562
# wget http://www.cryptopp.com/cryptopp562.zip
# unzip cryptopp562.zip
# CXX="g++ -fPIC" make
# make dynamic
# sudo make install
# fi
# build ethereum
cd ~/opt
mkdir cpp-ethereum-build
cd cpp-ethereum-build
cmake ~/ethereum/cpp-ethereum -DCMAKE_BUILD_TYPE=Debug
make
# build alethzero GUI client
mkdir alethzero
cd alethzero
qmake ~/ethereum/cpp-ethereum/alethzero
make
# cmake ~/ethereum/cpp-ethereum -DCMAKE_BUILD_TYPE=Debug
cmake ~/ethereum/cpp-ethereum -DHEADLESS=1 -DEVMJIT=1 -DCMAKE_BUILD_TYPE=Debug
make -j2
# now let's create bin folder in user's home dir and create symlinks to executables
cd ~
ln -s ~/opt/cpp-ethereum-build/alethzero/alethzero ~/bin/alethzero
ln -s ~/opt/cpp-ethereum-build/eth/eth ~/bin/eth
# install cloud-utils to fetch instance meta-data

View File

@ -19,15 +19,13 @@
"merge_logs" : true,
"watch" : false,
"exec_interpreter" : "node",
"exec_mode" : "cluster_mode",
"exec_mode" : "fork_mode",
"env":
{
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "8080",
"ETH_CLIENT" : "",
"ETH_TYPE" : "C++ 0.8.1",
"SOCKET_HOST" : "eth-netstats.herokuapp.com",
"WS_SERVER" : "wss://eth-netstats-dev.herokuapp.com",
}
}
]