From 4bbeb479af67c3efa300e7202dcc0df2f0dcb42a Mon Sep 17 00:00:00 2001 From: Joris Bontje Date: Fri, 31 Oct 2014 17:08:12 +0100 Subject: [PATCH] update Dockerfile with cryptopp and jsonrpc dependencies, fixes #423 --- docker/Dockerfile | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1bd690cbb..c183f03b9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,17 +4,30 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get upgrade -y -RUN apt-get install -qy wget -RUN apt-get install -qy build-essential g++-4.8 automake libtool unzip git cmake -RUN apt-get install -qy libncurses5-dev libgmp-dev libgmp3-dev libboost-all-dev libleveldb-dev yasm libminiupnpc-dev -RUN apt-get install -qy qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev +# 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 mkdir /cryptopp562 -RUN cd /cryptopp562 && wget http://www.cryptopp.com/cryptopp562.zip && unzip cryptopp562.zip -RUN cd /cryptopp562 && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install +# 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 + +# Cryptopp +RUN git clone --depth=1 https://github.com/mmoss/cryptopp.git +RUN cd cryptopp && scons --shared --prefix=/usr + +# JSONRPC (version 0.2.1, see https://github.com/ethereum/cpp-ethereum/issues/453 ) +RUN apt-get install -qy libjsoncpp-dev libargtable2-dev +RUN git clone --depth=1 --branch=0.2.1 https://github.com/cinemast/libjson-rpc-cpp.git +RUN mkdir -p libjson-rpc-cpp/build +RUN cd libjson-rpc-cpp/build && cmake .. && make && make install + +# Build Ethereum (HEADLESS) RUN git clone --depth=1 https://github.com/ethereum/cpp-ethereum -RUN mkdir cpp-ethereum/build -RUN cd cpp-ethereum/build && cmake .. -DCMAKE_BUILD_TYPE=Release && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install +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 ["/usr/local/bin/eth"]