cerc-io / stack-orchestrator

Read-only mirror of https://git.vdb.to/cerc-io/stack-orchestrator
https://git.vdb.to/cerc-io/stack-orchestrator
GNU Affero General Public License v3.0
19 stars 11 forks source link

Lighthouse container doesn't build on ARM #299

Open dboreham opened 1 year ago

dboreham commented 1 year ago
Step 14/19 : RUN cd /opt/testnet && make genesis-cl
 ---> Running in fd9677d7993e
cd cl; ./build_cl.sh
Creating testnet ...
(Note: errors of the form 'WARN: Scrypt parameters are too weak...' below can be safely ignored)
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
make: *** [Makefile:9: genesis-cl] Error 255
The command '/bin/sh -c cd /opt/testnet && make genesis-cl' returned a non-zero code: 2
Error running build for cerc/fixturenet-eth-lighthouse
FATAL Error: container build failed and --continue-on-error not set, exiting
dboreham commented 1 year ago

Dup of : https://github.com/cerc-io/stack-orchestrator/issues/298

dboreham commented 1 year ago

We use sigp/lcli here: https://github.com/cerc-io/stack-orchestrator/blob/main/app/data/container-build/cerc-fixturenet-eth-lighthouse/Dockerfile#L1 and sigp/lighthouse here: https://github.com/cerc-io/stack-orchestrator/blob/main/app/data/container-build/cerc-lighthouse/Dockerfile#L1

dboreham commented 1 year ago

sigp/lighthouse is built for ARM:

image

dboreham commented 1 year ago

sigp/lcli is not:

image

dboreham commented 1 year ago

The only thing we need from sigp/lcli is this one file:

$ docker run -it sigp/lcli:latest bash
root@d12b820a53c5:/# ls /usr/local/bin
lcli
root@d12b820a53c5:/#
dboreham commented 1 year ago

This PR adds local lighthouse container build, but it needs to use our fork of lighthouse because there is a build script bug in the stable lighthouse branch at present. Also takes a long time to build the containers and they're needed for most of our commonly used stacks. So holding off merging until we have pre-built container support.

https://github.com/cerc-io/stack-orchestrator/pull/301