aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/test-files/docker-cpp
diff options
context:
space:
mode:
authorsveneh <sven@ethdev.com>2015-01-15 00:03:37 +0800
committersveneh <sven@ethdev.com>2015-01-15 00:03:37 +0800
commit9326d0a6dd902435ad13fe23c21d7b8f30fb35ce (patch)
tree63e8394001b62c14fa9f8d0bc584e3608b5e4dd3 /ansible/test-files/docker-cpp
parent74faa30af6349a7f87959dcf907092b98af735ec (diff)
downloadtangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.gz
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.bz2
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.lz
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.xz
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.zst
tangerine-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.zip
Dockers for go, cpp
Diffstat (limited to 'ansible/test-files/docker-cpp')
-rw-r--r--ansible/test-files/docker-cpp/Dockerfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/ansible/test-files/docker-cpp/Dockerfile b/ansible/test-files/docker-cpp/Dockerfile
new file mode 100644
index 000000000..a3b0e4ca6
--- /dev/null
+++ b/ansible/test-files/docker-cpp/Dockerfile
@@ -0,0 +1,32 @@
+# adjusted from https://github.com/ethereum/cpp-ethereum/blob/develop/docker/Dockerfile
+FROM ubuntu:14.04
+
+ENV DEBIAN_FRONTEND noninteractive
+RUN apt-get update
+RUN apt-get upgrade -y
+
+# Ethereum dependencies
+RUN apt-get install -qy build-essential g++-4.8 git cmake libboost-all-dev libcurl4-openssl-dev wget
+RUN apt-get install -qy automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons
+RUN apt-get install -qy libjsoncpp-dev libargtable2-dev
+
+# NCurses based GUI (not optional though for a succesful compilation, see https://github.com/ethereum/cpp-ethereum/issues/452 )
+RUN apt-get install -qy libncurses5-dev
+
+# Qt-based GUI
+# RUN apt-get install -qy qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev
+
+# Ethereum PPA
+RUN apt-get install -qy software-properties-common
+RUN add-apt-repository ppa:ethereum/ethereum
+RUN apt-get update
+RUN apt-get install -qy libcryptopp-dev libjson-rpc-cpp-dev
+
+# Build Ethereum (HEADLESS)
+RUN git clone --depth=1 --branch develop https://github.com/ethereum/cpp-ethereum
+RUN mkdir -p cpp-ethereum/build
+RUN cd cpp-ethereum/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DHEADLESS=1 && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install
+RUN ldconfig
+
+ENTRYPOINT ["/cpp-ethereum/build/test/createRandomTest"]
+