-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (41 loc) · 1.01 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
.PHONY: homework-i-run
# Run homework.
homework-i-run:
@python main.py
.PHONY: homework-i-purge
homework-i-purge:
@echo The end
.PHONY: init-dev
# Init environment for development
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