aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/ansible/test-files/docker-cppjit/Dockerfile
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-09 06:07:44 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-14 06:26:07 +0800
commita91908e5678397a466060aa614081974a4a36455 (patch)
tree978be70e63397722f6bec971f045418096995fab /tests/files/ansible/test-files/docker-cppjit/Dockerfile
parentae33883c2fd72b960e774833708deb1ce10e3fe4 (diff)
downloadgo-tangerine-a91908e5678397a466060aa614081974a4a36455.tar
go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.gz
go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.bz2
go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.lz
go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.xz
go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.zst
go-tangerine-a91908e5678397a466060aa614081974a4a36455.zip
tests: updated
Diffstat (limited to 'tests/files/ansible/test-files/docker-cppjit/Dockerfile')
-rw-r--r--tests/files/ansible/test-files/docker-cppjit/Dockerfile46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/files/ansible/test-files/docker-cppjit/Dockerfile b/tests/files/ansible/test-files/docker-cppjit/Dockerfile
new file mode 100644
index 000000000..2b10727f0
--- /dev/null
+++ b/tests/files/ansible/test-files/docker-cppjit/Dockerfile
@@ -0,0 +1,46 @@
+# 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
+
+RUN sudo apt-get -y install software-properties-common
+
+# LLVM-3.5
+RUN wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
+RUN echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5 main\ndeb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5 main" > /etc/apt/sources.list.d/llvm-trusty.list
+RUN apt-get update
+RUN apt-get install -qy llvm-3.5 libedit-dev
+
+# Fix llvm-3.5 cmake paths
+RUN mkdir -p /usr/lib/llvm-3.5/share/llvm && ln -s /usr/share/llvm-3.5/cmake /usr/lib/llvm-3.5/share/llvm/cmake
+
+
+# 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
+
+# this is a workaround, to make sure that docker's cache is invalidated whenever the git repo changes
+ADD https://api.github.com/repos/ethereum/cpp-ethereum/git/refs/heads/develop unused.txt
+
+# 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=Debug -DVMTRACE=1 -DPARANOIA=1 -DEVMJIT=1 && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install
+RUN ldconfig
+
+ENTRYPOINT ["/cpp-ethereum/build/test/checkRandomStateTest"]