-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 978 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
help:
@echo "start - builds and starts services in dev mode"
@echo "stop - stop all running containers belonging to the project"
@echo "test - runs tests in debug mode (able to use pdb breakpoints)"
@echo "debug - runs the application in debug mode (able to use pdb breakpoints)"
@echo "clean - delete project containers, images and volumes"
start:
docker-compose -f docker-compose.dev.yml up
stop:
docker-compose -f docker-compose.dev.yml down -v
tests:
docker-compose -f docker-compose.dev.yml run --rm --service-ports web sh -c "pytest --capture=no --log-cli-level DEBUG && pylint *.py profiles/ test/ --rcfile=.pylintrc && echo \"Starting Flake8 checks\" && flake8 *.py profiles/ test/ --config=.flake8 && echo \"All checks completed\""
debug:
docker-compose -f docker-compose.dev.yml run --rm --service-ports web
clean: stop
-docker rm `docker-compose -f docker-compose.dev.yml ps -q`
-docker rmi `docker-compose -f docker-compose.dev.yml images -q`