Skip to content

Commit

Permalink
Auto build docker image when running local docker compose test (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
doutv authored Jan 16, 2025
1 parent 0892e60 commit 3cd1091
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ RUN_DOCKER_GRAFANA := $(DOCKER_COMPOSE) up -d $(DOCKER_GRAFANA)

STOP := $(DOCKER_COMPOSE) down --remove-orphans; sleep 3; rm -rf data

.PHONY: build-docker
build-docker: ## Build cdk-erigoin for sequencer and rpc
docker build -t cdk-erigon -f ../Dockerfile.local ../

.PHONY: run
run: ## Runs a full node
run: build-docker ## Runs a full node
# base services
$(RUN_DOCKER_L1_NETWORK)
$(RUN_DOCKER_DATA_AVAILABILITY_DB)
Expand Down Expand Up @@ -78,7 +82,7 @@ run: ## Runs a full node
$(RUN_DOCKER_GRAFANA)

.PHONY: all
all: ## Runs a full node
all: build-docker ## Runs a full node
# base services
$(RUN_DOCKER_L1_NETWORK)
$(RUN_DOCKER_DATA_AVAILABILITY_DB)
Expand Down Expand Up @@ -120,7 +124,7 @@ stop: ## Stops all services
$(STOP)

.PHONY: min-run
min-run: ## Runs a minimal node
min-run: build-docker ## Runs a minimal node
$(RUN_DOCKER_L1_NETWORK)
$(RUN_DOCKER_STATELESS_EXECUTOR)
sleep 10
Expand Down

0 comments on commit 3cd1091

Please sign in to comment.