From 9e99b2ca230d2ee4fb84d806ce97d82ca45425f7 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 7 Apr 2023 21:53:08 -0600 Subject: [PATCH] Build lighthouse containers locally to get arm64 platform compatibility Former-commit-id: a80bbd4a0410e54221e920e06b3d14a06010bd78 --- .../container-build/cerc-fixturenet-eth-lighthouse/Dockerfile | 2 +- app/data/container-build/cerc-lighthouse-base/build.sh | 3 +++ app/data/container-build/cerc-lighthouse-lcli/build.sh | 3 +++ app/data/container-build/cerc-lighthouse/Dockerfile | 2 +- app/data/container-image-list.txt | 2 ++ app/data/repository-list.txt | 1 + app/data/stacks/fixturenet-eth/stack.yml | 3 +++ 7 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 app/data/container-build/cerc-lighthouse-base/build.sh create mode 100755 app/data/container-build/cerc-lighthouse-lcli/build.sh diff --git a/app/data/container-build/cerc-fixturenet-eth-lighthouse/Dockerfile b/app/data/container-build/cerc-fixturenet-eth-lighthouse/Dockerfile index 2295262..4c3ddaa 100644 --- a/app/data/container-build/cerc-fixturenet-eth-lighthouse/Dockerfile +++ b/app/data/container-build/cerc-fixturenet-eth-lighthouse/Dockerfile @@ -1,4 +1,4 @@ -FROM sigp/lcli:v3.2.1 AS lcli +FROM cerc/lighthouse-lcli:local AS lcli FROM skylenet/ethereum-genesis-generator@sha256:210353ce7c898686bc5092f16c61220a76d357f51eff9c451e9ad1b9ad03d4d3 AS ethgen FROM cerc/fixturenet-eth-geth:local AS fnetgeth diff --git a/app/data/container-build/cerc-lighthouse-base/build.sh b/app/data/container-build/cerc-lighthouse-base/build.sh new file mode 100755 index 0000000..a26b2ac --- /dev/null +++ b/app/data/container-build/cerc-lighthouse-base/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# Build a local version of the sigp/lighthouse image +docker build -t cerc/lighthouse-base:local -f ${CERC_REPO_BASE_DIR}/lighthouse/Dockerfile ${CERC_REPO_BASE_DIR}/lighthouse diff --git a/app/data/container-build/cerc-lighthouse-lcli/build.sh b/app/data/container-build/cerc-lighthouse-lcli/build.sh new file mode 100755 index 0000000..c0711ec --- /dev/null +++ b/app/data/container-build/cerc-lighthouse-lcli/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# Build a local version of the sigp/lcli image +docker build -t cerc/lighthouse-lcli:local -f ${CERC_REPO_BASE_DIR}/lighthouse/lcli/Dockerfile ${CERC_REPO_BASE_DIR}/lighthouse diff --git a/app/data/container-build/cerc-lighthouse/Dockerfile b/app/data/container-build/cerc-lighthouse/Dockerfile index 14f0a2a..5edd77c 100644 --- a/app/data/container-build/cerc-lighthouse/Dockerfile +++ b/app/data/container-build/cerc-lighthouse/Dockerfile @@ -1,4 +1,4 @@ -FROM sigp/lighthouse:v3.2.1-modern +FROM cerc/lighthouse-base:local RUN apt-get update; apt-get install bash netcat curl less jq -y; diff --git a/app/data/container-image-list.txt b/app/data/container-image-list.txt index 150d81a..17228c1 100644 --- a/app/data/container-image-list.txt +++ b/app/data/container-image-list.txt @@ -34,3 +34,5 @@ cerc/act-runner-task-executor cerc/optimism-l2geth cerc/optimism-op-batcher cerc/optimism-op-node +cerc/lighthouse-base +cerc/lighthouse-lcli diff --git a/app/data/repository-list.txt b/app/data/repository-list.txt index 3f8c84b..2e2ca9a 100644 --- a/app/data/repository-list.txt +++ b/app/data/repository-list.txt @@ -28,3 +28,4 @@ lirewine/sdk telackey/act_runner ethereum-optimism/op-geth ethereum-optimism/optimism +sigp/lighthouse diff --git a/app/data/stacks/fixturenet-eth/stack.yml b/app/data/stacks/fixturenet-eth/stack.yml index a44f086..4f99f01 100644 --- a/app/data/stacks/fixturenet-eth/stack.yml +++ b/app/data/stacks/fixturenet-eth/stack.yml @@ -3,9 +3,12 @@ name: fixturenet-eth decription: "Ethereum Fixturenet" repos: - cerc-io/go-ethereum + - sigp/lighthouse - dboreham/foundry containers: - cerc/go-ethereum + - cerc/lighthouse-base + - cerc/lighthouse-lcli - cerc/lighthouse - cerc/fixturenet-eth-geth - cerc/fixturenet-eth-lighthouse