-
Notifications
You must be signed in to change notification settings - Fork 12
Automated docker build #9
Comments
When trying to build with a multistage docker file:
I ran into the following error:
|
This works:
This does not :
I'm guessing either |
Seems to fail when I leave out |
When I use
(note^ I turned down paralellism to |
(tried with |
It builds it correctly, but seems to install it at another place than we search for it
Notably: |
try |
Ok, finally got it working. Here's my docker image # Build stage
FROM alpine:latest as builder
RUN apk add --no-cache \
git \
cmake \
g++ \
make \
linux-headers \
leveldb-dev --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/
RUN git clone --recursive https://github.com/ethereum/testeth --branch develop --single-branch --depth 1
RUN mkdir /build
# See https://github.com/ethereum/cpp-ethereum/issues/4834
RUN cd /build && cmake /testeth -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTOOLS=OFF
RUN cmake --version
RUN cd /build && make -j1 && make install; exit 0
RUN cd /build && cp -r deps/lib64/libbinaryen.a deps/lib/; cp -r deps/lib64/libmpir.a deps/lib/
RUN cd /build && make -j1 && make install
# Install stage
FROM alpine:latest
RUN apk add --no-cache \
libstdc++ \
leveldb --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/
COPY --from=builder /build/test/testeth /usr/bin/testeth
#ENTRYPOINT ["/usr/bin/testeth"] I disabled the entrypoint, but you should probably enable it if you use this as a 'regular' docker image. And you can probably set |
Thank you. I'll try the old cpp image to see what should happen. (I've never used docker for testeth because my machine somewhere can compile testeth reasonably fast.) |
for error 'CPU_ZERO() ... missing memset' see boostorg/fiber#142 |
Need to update the Hera submodule (point it to a recent commit) to fix this. See ethereum/aleth#4906 as a reference. |
Maintaining both testeth in cpp-ethereum and the one here looks like a waste of time. |
Well it was supposed to be changed to use RPC only and then moved out. It seems that instead of |
There are worse PRs like #22 for testing new tests. (The current process uses the Travis on |
The duplicate of |
There should be an automated docker build at hub.docker.com/r/ethereum .
Preferrably using a multistage build to get the size down as much as possible.
Examples:
The text was updated successfully, but these errors were encountered: