-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
19 lines (14 loc) · 642 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
build=docker-compose --env-file=.env build --no-cache --pull
up=docker-compose --env-file=.env up -d
.PHONY: docker-compose-build
docker-compose-build: ## Build containers by docker compose.
@$(build)
.PHONY: docker-compose-up
docker-compose-up: ## Run containers by docker-compose.
@$(up)
docker-inspect-healthcheck: ## Inspect healthcheck of container. ex. make docker-inspect-healthcheck NAME=container-name
docker inspect --format "{{json .State.Health }}" ${NAME} | jq