-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.51 KB
/
Makefile
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
.PHONY: help test build 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 " down to destroy docker containers"
shell:
@echo
@echo "------------------------------------------------------------------"
@echo "Shelling in dev mode"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.yaml run --entrypoint /bin/bash cbsurge
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.yaml build
up:
@echo
@echo "------------------------------------------------------------------"
@echo "Launch docker containers"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.yaml up
down:
@echo
@echo "------------------------------------------------------------------"
@echo "Destroy docker containers"
@echo "------------------------------------------------------------------"
docker compose -f docker-compose.yaml down