membersystem/Makefile

40 lines
752 B
Makefile
Raw Permalink Normal View History

2021-02-28 23:20:59 +00:00
DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose
DOCKER_RUN = ${DOCKER_COMPOSE} run -e UID=`id -u` -e GID=`id -g`
MANAGE = ${DOCKER_RUN} backend python /app/src/manage.py
lint:
poetry run pre-commit run --all
run:
2021-02-28 23:20:59 +00:00
${DOCKER_COMPOSE} up --build
build:
2021-02-28 23:20:59 +00:00
${DOCKER_COMPOSE} build
2021-02-28 22:55:01 +00:00
makemessages:
${MANAGE} makemessages -a
makemigrations:
${MANAGE} makemigrations ${EXTRA_ARGS}
migrate:
${MANAGE} migrate ${EXTRA_ARGS}
createsuperuser:
${MANAGE} createsuperuser
shell:
${MANAGE} shell
manage_command:
${MANAGE} ${COMMAND}
test:
${DOCKER_RUN} backend pytest src/
add_dependency:
${DOCKER_RUN} backend poetry add --lock ${DEPENDENCY}
add_dev_dependency:
${DOCKER_RUN} backend poetry add -D --lock ${DEPENDENCY}