File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,6 +516,15 @@ start-postgres: ## Run the PostgreSQL 16 docker container
516516 @docker run --rm --name postgres -p 5432:5432 -d -e POSTGRES_PASSWORD=password -e POSTGRES_DB=rollupsdb -v $(CURDIR ) /test/postgres/init-test-db.sh:/docker-entrypoint-initdb.d/init-test-db.sh postgres:18-alpine
517517 @$(MAKE ) migrate
518518
519+ start-awslocalstack : # # Run the AWS LocalStack docker container
520+ @echo " Starting AWS localstack"
521+ @docker run --rm --name awslocalstack -p 127.0.0.1:4566:4566 -d -e SERVICES=kms localstack/localstack:4.14.0
522+ @echo " Add the following variables to run integration test with AWS services:"
523+ @echo " export AWS_ACCESS_KEY_ID=test"
524+ @echo " export AWS_SECRET_ACCESS_KEY=test"
525+ @echo " export LOCALSTACK_KMS_ENDPOINT=http://localhost:4566"
526+ @echo " export LOCALSTACK_KMS_REQUIRED=true"
527+
519528start : start-postgres start-devnet # # Start the anvil devnet and PostgreSQL 16 docker containers
520529
521530stop-devnet : # # Stop the anvil devnet docker container
@@ -524,6 +533,9 @@ stop-devnet: ## Stop the anvil devnet docker container
524533stop-postgres : # # Stop the PostgreSQL 16 docker container
525534 @docker stop postgres || true
526535
536+ stop-awslocalstack : # # Stop the AWS LocalStack docker container
537+ @docker stop awslocalstack || true
538+
527539stop : stop-devnet stop-postgres # # Stop all running docker containers
528540
529541restart-devnet : # # Restart the anvil devnet docker container
You can’t perform that action at this time.
0 commit comments