membersystem/Makefile

35 lines
756 B
Makefile
Raw Normal View History

DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose
2021-12-13 19:44:09 +00:00
DOCKER_RUN = ${DOCKER_COMPOSE} run -u `id -u`
DOCKER_CONTAINER_NAME = backend
MANAGE_EXEC = python /app/src/manage.py
MANAGE_COMMAND = ${DOCKER_RUN} ${DOCKER_CONTAINER_NAME} ${MANAGE_EXEC}
2022-11-21 19:51:09 +00:00
init: setup_venv pre_commit_install migrate
run:
2021-12-13 19:44:09 +00:00
${DOCKER_COMPOSE} up
2021-02-28 22:55:01 +00:00
2022-11-21 19:51:09 +00:00
pre_commit_install:
venv/bin/pre-commit install
pre_commit_run_all:
venv/bin/pre-commit run --all-files
makemigrations:
${MANAGE_COMMAND} makemigrations ${ARGS}
migrate:
${MANAGE_COMMAND} migrate ${ARGS}
createsuperuser:
2021-12-13 19:44:09 +00:00
${MANAGE_COMMAND} createsuperuser
shell:
2021-12-13 19:44:09 +00:00
${MANAGE_COMMAND} shell
manage_command:
${MANAGE_COMMAND} ${ARGS}
2024-07-14 19:19:32 +00:00
build_dev_docker_image:
2021-12-13 19:44:09 +00:00
${DOCKER_COMPOSE} build ${DOCKER_CONTAINER_NAME}