-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d34797e
commit 43441ef
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
DOCKERCOMPOSE := docker compose -f docker-compose.yml | ||
|
||
.PHONY: start-l1-network | ||
start-l1-network: ## Starts mock L1 network | ||
$(DOCKERCOMPOSE) up -d cdk-l1 | ||
|
||
.PHONY: start-node | ||
start-node: ## Starts db, validium node and validium RPC | ||
$(DOCKERCOMPOSE) up -d cdk-postgres | ||
$(DOCKERCOMPOSE) up -d cdk-validium-node-1 | ||
$(DOCKERCOMPOSE) up -d cdk-validium-hermez-rpc-1 | ||
|
||
.PHONY: start-prover | ||
start-prover: ## Starts prover | ||
$(DOCKERCOMPOSE) up -d cdk-prover-1 | ||
|
||
.PHONY: start-aggregator-direct | ||
start-aggregator-direct: ## Starts aggregator with direct settlement | ||
$(DOCKERCOMPOSE) up -d cdk-validium-hermez-aggregator-direct-1 | ||
|
||
.PHONY: start-aggregator-agglayer | ||
start-aggregator-agglayer: ## Starts aggregator with agglayer settlement | ||
$(DOCKERCOMPOSE) up -d cdk-validium-hermez-aggregator-agglayer-1 | ||
|
||
.PHONY: start-all-components | ||
start-all-components: ## Starts mock l1 network, aggregator with direct settlement, prover and | ||
$(MAKE) start-l1-network | ||
$(MAKE) start-aggregator-direct | ||
$(MAKE) start-prover | ||
$(MAKE) start-node | ||
|
||
.PHONY: run-tests | ||
run-tests: ## Runs all tests within the workspace | ||
go test -v -race ./... | ||
|
||
.PHONY: help | ||
help: ## Prints the help | ||
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | ||
| sort \ | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |