-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (44 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
.PHONY: homework-i-run
# Run homework
homework-i-run:
@python organize_output/organize_output__groups_and_humans.py
.PHONY: homework-i-run-users
# Run homework
homework-i-run-users:
@python generate_users/generate_users.py
.PHONY: homework-i-purge
homework-i-purge:
@echo The end
.PHONY: init-dev
init-dev:
@pip install --upgrade pip && \
pip install --requirement requirements.txt && \
pre-commit install
.PHONY: pre-commit-run
# Run tools for files from commit.
pre-commit-run:
@pre-commit run
.PHONY: pre-commit-run-all
# Run tools for all files.
pre-commit-run-all:
@pre-commit run --all-files
.PHONY: d-homework-i-run
# Make all actions needed for run homework (docker).
d-homework-i-run:
@make d-run
.PHONY: d-homework-i-purge
# Make all actions needed for purge homework related data.
d-homework-i-purge:
@make d-purge
.PHONY: d-run
# Run docker
d-run:
@COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 \
docker-compose \
up --build
.PHONY: d-purge
# Purge all data related with services
d-purge:
@COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 \
docker-compose \
down --volumes --remove-orphans --rmi local --timeout 0