Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluffy's Dockerfile.portalhive for portal hive debugging is broken #1930

Open
kdeme opened this issue Dec 8, 2023 · 1 comment
Open

Fluffy's Dockerfile.portalhive for portal hive debugging is broken #1930

kdeme opened this issue Dec 8, 2023 · 1 comment
Labels

Comments

@kdeme
Copy link
Contributor

kdeme commented Dec 8, 2023

Fails when trying to build:

 => [build 5/6] RUN --mount=type=cache,target=/fluffy/vendor     make deps -j2                                                                                                                                                           0.2s 
 => ERROR [build 6/6] RUN --mount=type=cache,target=/fluffy/vendor <<EOF (set -e...)                                                                                                                                                     0.3s 
------                                                                                                                                                                                                                                        
 > [build 6/6] RUN --mount=type=cache,target=/fluffy/vendor <<EOF (set -e...):                                                                                                                                                                
#0 0.278 Git submodules not found. Running 'git -c submodule.vendor/nimbus-eth2.update=none submodule update --init --recursive; git submodule update vendor/nimbus-eth2; cd vendor/nimbus-eth2; git submodule update --init vendor/eth2-networks; git submodule update --init vendor/holesky; git submodule update --init vendor/sepolia; git submodule update --init vendor/gnosis-chain-configs; git submodule update --init --recursive vendor/nim-kzg4844; cd ../..'.                  
#0 0.278                                                                                                                                                                                                                                      
#0 0.286 fatal: not a git repository (or any of the parent directories): .git
#0 0.294 fatal: not a git repository (or any of the parent directories): .git
#0 0.294 bash: line 2: cd: vendor/nimbus-eth2: No such file or directory
#0 0.302 fatal: not a git repository (or any of the parent directories): .git
#0 0.310 fatal: not a git repository (or any of the parent directories): .git
#0 0.317 fatal: not a git repository (or any of the parent directories): .git
#0 0.325 fatal: not a git repository (or any of the parent directories): .git
#0 0.332 fatal: not a git repository (or any of the parent directories): .git
#0 0.333 
#0 0.333 make: Nothing to be done for 'fluffy'.
#0 0.334 cp: cannot stat '/fluffy/build/fluffy': No such file or directory
------
Dockerfile.portalhive:18
--------------------
  17 |     
  18 | >>> RUN --mount=type=cache,target=/fluffy/vendor <<EOF
  19 | >>>   set -e
  20 | >>>   make fluffy -j${NPROC}
  21 | >>>   cp /fluffy/build/fluffy /usr/local/bin/fluffy
  22 | >>> EOF
  23 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c   set -e\n  make fluffy -j${NPROC}\n  cp /fluffy/build/fluffy /usr/local/bin/fluffy\n" did not complete successfully: exit code: 1

Tried also removing vendor from the dockerignore, did not work.

@kdeme
Copy link
Contributor Author

kdeme commented Dec 8, 2023

I can get away with this simple Dockerfile for debugging:

FROM debian:stable-slim

COPY ./build/fluffy /usr/local/bin/fluffy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants