-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
48 lines (38 loc) · 1.63 KB
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
44
45
46
.PHONY: help test build build-prod down shell
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " shell to shell in dev mode"
@echo " test to execute test cases"
@echo " build to build docker image"
@echo " build-prod to build production docker image"
@echo " down to destroy docker containers"
shell:
@echo
@echo "------------------------------------------------------------------"
@echo "Shelling in dev mode"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.dev.yaml run --remove-orphans --entrypoint /bin/bash rapida-dev
test:
@echo
@echo "------------------------------------------------------------------"
@echo "Execute test cases"
@echo "------------------------------------------------------------------"
pipenv run python -m pytest tests
build:
@echo
@echo "------------------------------------------------------------------"
@echo "Building Docker image"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.dev.yaml build
build-prod:
@echo
@echo "------------------------------------------------------------------"
@echo "Building Production Docker image"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.yaml build
down:
@echo
@echo "------------------------------------------------------------------"
@echo "Destroy docker containers"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.dev.yaml down