forked from sidpalas/devops-directive-docker-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 917 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 917 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
DEV_COMPOSE_FILE=docker-compose-dev.yml
DEBUG_COMPOSE_FILE=docker-compose-debug.yml
TEST_COMPOSE_FILE=docker-compose-test.yml
### DOCKER COMPOSE COMMANDS
.PHONY: compose-build
compose-build:
docker compose -f $(DEV_COMPOSE_FILE) build
.PHONY: compose-up
compose-up:
docker compose -f $(DEV_COMPOSE_FILE) up
.PHONY: compose-up-build
compose-up-build:
docker compose -f $(DEV_COMPOSE_FILE) up --build
.PHONY: compose-up-debug-build
compose-up-debug-build:
docker compose -f $(DEV_COMPOSE_FILE) -f $(DEBUG_COMPOSE_FILE) up --build
.PHONY: compose-down
compose-down:
docker compose -f $(DEV_COMPOSE_FILE) down
###
DOCKERCONTEXT_DIR:=../05-example-web-application/
DOCKERFILE_DIR:=../11-development-workflow/
.PHONY: run-tests
run-tests:
docker compose -f $(DEV_COMPOSE_FILE) -f $(TEST_COMPOSE_FILE) run --build api-golang
docker compose -f $(DEV_COMPOSE_FILE) -f $(TEST_COMPOSE_FILE) run --build api-node