Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 37 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ build-linux:
fi
.PHONY: build-linux

# Auto-detect platform: use arm64 on ARM Macs, amd64 elsewhere
DOCKER_PLATFORM ?= $(shell if [ "$$(uname -m)" = "arm64" ]; then echo "linux/arm64"; else echo "linux/amd64"; fi)
# Auto-detect platform: arm64 on ARM Macs and Graviton (aarch64), amd64 elsewhere
DOCKER_PLATFORM ?= $(shell if [ "$$(uname -m)" = "arm64" ] || [ "$$(uname -m)" = "aarch64" ]; then echo "linux/arm64"; else echo "linux/amd64"; fi)
export DOCKER_PLATFORM

# Build docker image for detected platform
Expand Down Expand Up @@ -542,6 +542,41 @@ docker-cluster-stop-monitoring:
@cd docker && DOCKER_PLATFORM=$(DOCKER_PLATFORM) USERID=$(shell id -u) GROUPID=$(shell id -g) GOCACHE=$(shell go env GOCACHE) docker compose -f docker-compose.yml -f docker-compose.monitoring.yml down
.PHONY: docker-cluster-stop-monitoring

# One Autobahn validator per AWS host. VALIDATOR_HOME is the persisted seid
# directory and must live outside build/ so step0's `make clean` cannot delete it.
AWS_VALIDATOR_COMPOSE = docker compose -f docker-compose.aws-validator.yml
VALIDATOR_HOME ?= $(HOME)/.sei-autobahn-e2e-home

docker-aws-validator-init:
@mkdir -p $(VALIDATOR_HOME)
@cd docker && $(CLUSTER_ENV_VARS) VALIDATOR_HOME=$(VALIDATOR_HOME) ID=$(ID) ADVERTISE_IP=$(ADVERTISE_IP) AUTOBAHN_E2E_PHASE=init SKIP_BUILD=$(SKIP_BUILD) \
$(AWS_VALIDATOR_COMPOSE) run --rm --no-deps node
.PHONY: docker-aws-validator-init

docker-aws-validator-genesis:
@mkdir -p $(VALIDATOR_HOME)
@cd docker && $(CLUSTER_ENV_VARS) VALIDATOR_HOME=$(VALIDATOR_HOME) ID=0 AUTOBAHN_E2E_PHASE=genesis SKIP_BUILD=true \
$(AWS_VALIDATOR_COMPOSE) run --rm --no-deps node
.PHONY: docker-aws-validator-genesis

docker-aws-validator-start:
@mkdir -p $(VALIDATOR_HOME)
@cd docker && $(CLUSTER_ENV_VARS) VALIDATOR_HOME=$(VALIDATOR_HOME) ID=$(ID) ADVERTISE_IP=$(ADVERTISE_IP) AUTOBAHN_E2E_PHASE=start SKIP_BUILD=true \
$(AWS_VALIDATOR_COMPOSE) up -d
.PHONY: docker-aws-validator-start

docker-aws-validator-stop:
@cd docker && $(CLUSTER_ENV_VARS) VALIDATOR_HOME=$(VALIDATOR_HOME) $(AWS_VALIDATOR_COMPOSE) down
.PHONY: docker-aws-validator-stop

docker-aws-load-start:
@cd docker && $(CLUSTER_ENV_VARS) docker compose -f docker-compose.aws-load.yml up -d
.PHONY: docker-aws-load-start

docker-aws-load-stop:
@cd docker && $(CLUSTER_ENV_VARS) docker compose -f docker-compose.aws-load.yml down
.PHONY: docker-aws-load-stop

# Run GIGA EVM integration tests with a GIGA-enabled cluster
# This starts a fresh cluster with GIGA_EXECUTOR and GIGA_OCC enabled,
# runs the EVM GIGA tests, then stops the cluster.
Expand Down
Loading
Loading