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

dockerize beacond #1934

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Changes from 18 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
56c47a3
geth and beacond
nidhi-singh02 Aug 6, 2024
4684019
how to run with snapshot - steps
nidhi-singh02 Aug 7, 2024
1434a06
docker image for arm64 - trying
nidhi-singh02 Aug 11, 2024
e9b5a39
beacond docker image runs
nidhi-singh02 Aug 13, 2024
d038d89
cleanup - separate entrypoint not needed
nidhi-singh02 Aug 13, 2024
f4874f1
moved bartio docker to build folder
nidhi-singh02 Aug 13, 2024
3af418e
cleanup
nidhi-singh02 Aug 13, 2024
c40e3de
rename targets
nidhi-singh02 Aug 14, 2024
6acfd1a
few enhancements
nidhi-singh02 Aug 14, 2024
40e6b20
sh used
nidhi-singh02 Aug 20, 2024
5ea03e6
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 21, 2024
59cddbf
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 21, 2024
394de0a
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 22, 2024
d26fc9a
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 23, 2024
9ed4642
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 23, 2024
a717a64
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 25, 2024
3d24c08
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 27, 2024
840e9e1
Merge branch 'main' into bartio-docker
nidhi-singh02 Aug 30, 2024
672ba56
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 5, 2024
717ad51
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 9, 2024
61e2d19
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 13, 2024
1f0561e
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 17, 2024
9859f79
generate check
nidhi-singh02 Sep 17, 2024
5731711
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 17, 2024
b7b3c33
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 25, 2024
0e356ac
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 26, 2024
7d655da
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 27, 2024
5f6b184
Merge branch 'main' into bartio-docker
nidhi-singh02 Sep 30, 2024
4e298b4
Merge branch 'main' into bartio-docker
nidhi-singh02 Oct 1, 2024
5cc07af
Merge branch 'main' into bartio-docker
nidhi-singh02 Oct 4, 2024
2ae8dad
Merge branch 'main' into bartio-docker
nidhi-singh02 Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions build/scripts/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,49 @@ start-bartio:
CHAIN_SPEC=$(TESTNET_CHAIN_SPEC) \
${TESTAPP_FILES_DIR}/entrypoint.sh

#######################################################
# Start `beacond` using docker image connected to bArtio #
#######################################################
# TODO: For restoring snapshot, pre-requsites:
# Place the snapshot in the `./.tmp/beacond/data` directory.

IP_ADDRESS := $(sh hostname -I | awk '{print $$1}')
RPC_URL = "http://${IP_ADDRESS}:8551"
IMAGE_NAME = beacond
VERSION = kurtosis-local

IMAGE_EXISTS := $(shell docker image ls -q $(IMAGE_NAME):$(VERSION))

build-beacond-image:
ifdef IMAGE_EXISTS
@echo "Image $(IMAGE_NAME):$(VERSION) already exists."
else
@echo "Image $(IMAGE_NAME):$(VERSION) does not exist. Building image..."
make build-docker VERSION=kurtosis-local
endif

start-bartio-docker: build-beacond-image
docker run --rm \
-v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
-v $(PWD)/${BARTIO_NETWORK_FILES_DIR}:/${BARTIO_NETWORK_FILES_DIR} \
-v $(PWD)/.tmp:/.tmp \
-e CHAIN_SPEC=testnet \
${IMAGE_NAME}:${VERSION} \
start \
--home "./.tmp/beacond" \
--pruning=nothing \
--api.enable \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated flags

--api.enabled-unsafe-cors \
--beacon-kit.engine.jwt-secret-path ${JWT_PATH} \
--beacon-kit.engine.rpc-dial-url=${RPC_URL} \
--beacon-kit.node-api.enabled \
--beacon-kit.node-api.logging \
--beacon-kit.node-api.address \
--beacon-kit.block-store-service.enabled \
--beacon-kit.block-store-service.pruner-enabled \
--beacon-kit.logger.log-level info

#######################################################
# start-ipc is currently only supported while running eth client the host machine
# Only works with geth-host rn
start-ipc: ## start a local ephemeral `beacond` node with IPC
Expand Down
Loading