Skip to content

Commit

Permalink
Add Springload Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
haydngreatnews committed May 3, 2024
1 parent bfd904f commit f1c5ecc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
project := `basename $PWD`

# Lists available recipes
default:
@just --list

# Update constraints
update-constraints:
docker buildx bake \
--load \
--file docker-bake.hcl \
--no-cache \
--set *.tags={{project}}-constraints \
app
docker run --rm --entrypoint='' {{project}}-constraints pip freeze > requirements/constraints.txt
docker image rm {{project}}-constraints

# Run manage.py migrate
migrate:
docker-compose exec -T application sh -c 'python manage.py migrate'

# Run manage.py makemigrations
makemigrations:
docker-compose exec -T application sh -c 'python manage.py makemigrations'

# Shell (backend)
shell:
docker-compose exec application sh

# Run unit tests
# TODO: Update for however tests are run here
# test:
# docker-compose exec -T application sh test.sh

0 comments on commit f1c5ecc

Please sign in to comment.