forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
33 lines (27 loc) · 835 Bytes
/
justfile
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
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