-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (33 loc) · 889 Bytes
/
Makefile
File metadata and controls
38 lines (33 loc) · 889 Bytes
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
.PHONY: d-run
# Just run
d-run:
@COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 \
COMPOSE_PROFILES=full_dev \
docker compose \
up --build
.PHONY: d-run-local-dev
# Just run
d-run-local-dev:
@COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 \
COMPOSE_PROFILES=local_dev \
docker compose \
up --build -d && \
docker-compose logs -f postgres & \
python manage.py runserver
.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
.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: util-i-kill-by-port
util-i-kill-by-port:
@sudo lsof -i:5432 -Fp | head -n 1 | sed 's/^p//' | xargs sudo kill