From 1de6683c4f875cc9f78c88ca56e6b7a79ceb5429 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 29 Apr 2019 23:31:18 +0000 Subject: [PATCH] add dockerfile for testeth with hera included --- testeth-hera/Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testeth-hera/Dockerfile diff --git a/testeth-hera/Dockerfile b/testeth-hera/Dockerfile new file mode 100644 index 0000000..39fe8c2 --- /dev/null +++ b/testeth-hera/Dockerfile @@ -0,0 +1,35 @@ +# For running this container as non-root user, see +# https://github.com/ethereum/cpp-ethereum/blob/develop/scripts/docker-eth +# or call `docker run` like this: +# +## mkdir -p ~/.ethereum ~/.web3 +## docker run --rm -it \ +## -p 0.0.0.0:30303:30303 \ +## -v ~/.ethereum:/.ethereum -v ~/.web3:/.web3 \ +## -e HOME=/ --user $(id -u):$(id -g) ethereum/client-cpp + +FROM alpine + +RUN apk add --no-cache \ + libstdc++ \ + gmp \ + leveldb --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ + && apk add --no-cache --virtual .build-deps \ + git \ + cmake \ + g++ \ + make \ + linux-headers \ + leveldb-dev --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ + && sed -i -E -e 's|#warning|//#warning|' /usr/include/sys/poll.h \ + && git clone --recursive https://github.com/ethereum/aleth --branch master --single-branch --depth 1 \ + && mkdir /build && cd /build \ + && cmake /aleth \ + && make testeth \ + && git clone https://github.com/ewasm/hera \ + && cd hera \ + && git submodule update --init \ + && mkdir build \ + && cd build \ + && cmake -DBUILD_SHARED_LIBS=ON .. \ + && make -j2