-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 955 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "------------------------------------------------------------------------"
@echo "BB Consent API"
@echo "------------------------------------------------------------------------"
@grep -E '^[0-9a-zA-Z_/%\-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
check-swagger-cli:
@which swagger-cli > /dev/null || (echo "\033[31mPlease install swagger-cli before proceeding.\033[0m" && exit 1)
bootstrap: resources/ssl/development ## Boostraps development environment
make -C resources/ssl/development bootstrap
up: bootstrap ## Run nginx server with swagger ui and start watching for changes
docker-compose up -d
down: ## Stop the nginx server and file watcher
docker-compose down
bundle: check-swagger-cli ## Bundles swagger files
find openapi -name 'index.yaml' -type f -execdir swagger-cli bundle {} -o ./bundled.yaml -t yaml \;