Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions testeth-hera/Dockerfile
Original file line number Diff line number Diff line change
@@ -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