Closed kdeme closed 1 month ago
I can get away with this simple Dockerfile for debugging:
FROM debian:stable-slim
COPY ./build/fluffy /usr/local/bin/fluffy
@kdeme Is this issue still valid? I had no issues using the portalhive docker file locally when I was fixing the state hive tests.
@kdeme Is this issue still valid? I had no issues using the portalhive docker file locally when I was fixing the state hive tests.
I will retest
Testing the Dockerfile on macOS I did hit this issue:
--------------------
17 |
18 | >>> RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nimbus-eth1/vendor \
19 | >>> mv vendor.orig vendor && \
20 | >>> make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" V=1 update
21 |
--------------------
ERROR: failed to solve: process "/bin/sh -c mv vendor.orig vendor && make -j${NPROC} NIMFLAGS=\"${NIMFLAGS_COMMON} --parallelBuild:${NPROC}\" V=1 update" did not complete successfully: exit code: 1
edit: the above issue seem to have occured after I had changed (correctly) the Dockerfile between builds. After docker build cache prune and rebuild few times with the newer Dockerfile, it no longer occurs.
Currently on Linux I do not have this issue anymore. Might have had to do with some state of the vendor modules. Will close for now and re-open should it occur again.
Fails when trying to build:
Tried also removing vendor from the
dockerignore
, did not work.