-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
53 lines (36 loc) · 2.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DEFAULT_GOAL := help
.PHONY: help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
run-test: ## run all test, unit | integration | e2e
mvn clean test
run-build:
mvn clean install
aws-list-topics: ## list aws topics
awslocal sns list-topics
aws-list-queue: ## list aws queues
awslocal sqs list-queues
aws-create-topic: ## create a topic ex: $ aws-create-topic topic=my_topic_name
awslocal sns create-topic --name $(topic)
aws-create-queue: ## create a topic ex: $ aws-create-queue queue=my_queue_name
awslocal sqs create-queue --queue-name $(queue)
aws-subscribe: ## create a subscriber between topic and queue $ aws-subscribe topic_arn=arn:aws:sns:us-east-1:000000000000:topic_name queue_arn=arn:aws:sqs:us-east-1:000000000000:queue_name
awslocal sns subscribe --protocol sqs --topic-arn $(topic_arn) --notification-endpoint $(queue_arn)
aws-receive-message: ## receive msg by queue-url $ aws-receive-message=http://localhost:4566/000000000000/wallet-trade-calculator
awslocal sqs receive-message --queue-url $(queue_url)
infra-docker-local-start: ## Run infrastructure locally
docker-compose -f infrastructure/monitoring/docker-compose.yml up -d --build
infra-docker-local-stop: ## Stop infrastructure locally
docker-compose -f infrastructure/monitoring/docker-compose.yml down
infra-podman-local-start: ## Run infrastructure locally
podman-compose -f infrastructure/monitoring/docker-compose.yml up -d --build
infra-podman-local-stop: ## Stop infrastructure locally
podman-compose -f infrastructure/monitoring/docker-compose.yml down
db-docker-local-start: ## Run database locally
docker-compose -f infrastructure/databases/docker-compose.yml up -d --build
db-docker-local-stop: ## Stop database locally
docker-compose -f infrastructure/databases/docker-compose.yml down
db-podman-local-start: ## Run database locally
podman-compose -f infrastructure/databases/docker-compose.yml up -d --build
db-podman-local-stop: ## Stop database locally
podman-compose -f infrastructure/databases/docker-compose.yml down