-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (38 loc) · 1.12 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
46
47
48
49
50
51
52
53
54
55
56
-include secrets.mk
compose = docker-compose
dev = -f docker-compose.dev.yml
test = -f docker-compose.test.yml
build:
TAG=$$(date +%m%d%H%M%S) && ${compose} ${dev} build --force-rm --no-cache
start:
TAG=$$(date +%m%d%H%M%S) && ${compose} ${dev} up
stop:
${compose} ${dev} down --remove-orphans
debug:
TAG=$$(date +%m%d%H%M%S) ${compose} ${dev} --verbose up
reload: stop start
hard-reload: stop rmi start
test :
TAG=$$(date +%m%d%H%M%S) ${compose} ${test} up --abort-on-container-exit
stop-test:
${compose} ${test} down
test-security:
snyk config set api=$(snyk_auth_token)
snyk test --fail-on=upgradable
test-image-security:
snyk config set api=$(snyk_auth_token)
snyk container test python:3.9 --file=Dockerfile --fail-on=upgradable
reload-test: stop-test test
hard-reload-test: stop-test rmi test
lint:
flake8 . --extend-exclude env
rm :
docker container prune -f
rm-all:
docker stop $$(docker ps -aq) && docker rm $$(docker ps -aq)
rmi :
docker rmi robinhood_robinhood
rmi-all:
docker rmi $$(docker images -q)
purge:
docker system prune --volumes --all -f