-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·39 lines (29 loc) · 853 Bytes
/
Makefile
File metadata and controls
executable file
·39 lines (29 loc) · 853 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
28
29
30
31
32
33
34
35
36
37
38
39
#
# build-tool
# (C) [email protected], 2020
#
.PHONY: help build
help:
@echo "# Build-Tool"
@echo "# (C) [email protected], 2020"
@echo Invocation: make [command]
@echo Commands:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
# hier die befehle
build: ## alle Container bauen
docker-compose build
up: ## start containers
docker-compose up -d --remove-orphans
down: ## stop containers
docker-compose down
bash: ## open bash in app container
docker-compose exec midi2mp3-api bash
logs: ## show container logs and follow untail ^c
docker-compose logs -f -t
ps: ## see what's running
docker-compose ps
push: ## push repo do Dockerhub
docker login \
&& docker-compose push midi2mp3-api \
&& docker logout