-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
43 lines (32 loc) · 917 Bytes
/
makefile
File metadata and controls
43 lines (32 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
36
37
38
39
40
41
42
43
# Docker Compose local
compose_base_cmd = docker compose -f
local_compose_file = docker-compose-local.yml
local_compose_cmd = $(compose_base_cmd) $(local_compose_file)
local_compose_up = $(local_compose_cmd) up -d
# Docker
docker_exec_base_cmd = docker exec
docker_exec_it_base_cmd = $(docker_exec_base_cmd) -it
# Services
BACKEND_SERVICE_NAME = backend
# Containeer
BACKEND_CONTAINER_NAME = highlight-extractor-backend
### BASH ###
be_bash:
$(docker_exec_it_base_cmd) $(BACKEND_CONTAINER_NAME) bash
# Only the first time you run the project
up_rebuilding:
$(local_compose_up) $(BACKEND_SERVICE_NAME) --build
up:
$(local_compose_up) $(BACKEND_SERVICE_NAME)
# LOCAL
up_backend:
$(local_compose_up) $(BACKEND_SERVICE_NAME)
make be_bash
up_backend_rebuilding:
$(local_compose_up) $(BACKEND_SERVICE_NAME) --build
make be_bash
stop:
$(local_compose_cmd) stop
# LOCAL
down:
$(local_compose_cmd) down