-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (37 loc) · 964 Bytes
/
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
.EXPORT_ALL_VARIABLES:
export APP_CONTAINER=funbro-data-collector
export DATABASE=db
.PHONY: run
run:
docker-compose run --rm $(APP_CONTAINER) python -m src IMDB_DAILY --datasets ALL
.PHONY: bash
bash:
docker-compose run --rm $(APP_CONTAINER) bash
.PHONY: build
build:
docker-compose build $(APP_CONTAINER)
.PHONY: rebuild_db
rebuild_db:
docker-compose stop $(DATABASE) && echo "Y" | docker-compose rm $(DATABASE) && docker-compose up $(DATABASE)
.PHONY: up
up:
docker-compose up
.PHONY: down
down:
docker-compose down
.PHONY: restart
restart:
docker-compose down && docker-compose up
# Development:
.PHONY: test
test:
docker-compose run --rm $(APP_CONTAINER) tox -e test
.PHONY: flake
flake:
docker-compose run --rm $(APP_CONTAINER) tox -e flake8
.PHONY: mypy
mypy:
docker-compose run --rm $(APP_CONTAINER) tox -e mypy
.PHONY: tox
tox:
docker-compose run --rm $(APP_CONTAINER) tox -p all