Skip to content

Commit

Permalink
Revert "Integrate beacond connected to bArtio via docker (#1848)"
Browse files Browse the repository at this point in the history
This reverts commit d1ddc15.
  • Loading branch information
itsdevbear committed Aug 20, 2024
1 parent d1ddc15 commit dcf9612
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions build/scripts/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,49 +40,6 @@ 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 := $(shell 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 \
--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

0 comments on commit dcf9612

Please sign in to comment.