-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (15 loc) · 676 Bytes
/
Makefile
File metadata and controls
19 lines (15 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
THIS_FILE := $(lastword $(MAKEFILE_LIST))
down:
USERID=$$(id -u) GROUPID=$$(id -g) docker-compose down -v --remove-orphans
build:
USERID=$$(id -u) GROUPID=$$(id -g) docker-compose -f docker-compose.yml build
up:
USERID=$$(id -u) GROUPID=$$(id -g) docker-compose -f docker-compose.yml build
USERID=$$(id -u) GROUPID=$$(id -g) docker-compose -f docker-compose.yml up -d