-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 937 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 937 Bytes
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
SHELL = /bin/bash
.ONESHELL:
.DEFAULT_GOAL: help
help: ## Prints available commands
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n"} /^[.a-zA-Z_-]+:.*?##/ { printf " \033[36m%-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
start.dev: ## Start the rinha in Dev
@docker-compose up -d nginx
start.prod: ## Start the rinha in Prod
@docker-compose -f docker-compose-prod.yml up -d nginx
docker.stats: ## Show docker stats
@docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}"
health.check: ## Check the stack is healthy
@curl -v http://localhost:9999/contagem-pessoas
stress.it: ## Run stress tests
@sh stress-test/run-test.sh
docker.build: ## Build the docker image
@docker build -t leandronsp/rinha-backend-bash --target prod .
docker.push: ## Push the docker image
@docker push leandronsp/rinha-backend-bash