summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-05-23 15:46:39 +0100
committerGitHub <noreply@github.com>2024-05-23 15:46:39 +0100
commitd7ad757ac6f14fe5e7d35f7a6118128b722b5ab8 (patch)
tree7d650e6e53c31f5f69cc20932cf8e24144c11a1f /Makefile
parentc89d53a2921e4e6b681c6a9dc97f7cc8eeb43956 (diff)
parent3f0c11112173c3f969c61f1bcc48ebd27e18edc1 (diff)
Merge pull request #51 from defencedigital/postgres-migration
Revert "Ditched the redhat builder stage"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 795701d..e0ebf25 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: stop create-network build-postgres run-postgres build-django run-django
+all: stop create-network build-postgres run-postgres build-django run-django migrate-and-superuser
CONFIG := conf.settings.local
@@ -19,7 +19,7 @@ build-postgres:
run-postgres:
docker run -it --name postgres -d --rm -e POSTGRESQL_PASSWORD=ded -e POSTGRESQL_USER=ded -e POSTGRESQL_DATABASE=ded -p 5432:5432 --network dednetwork dso-quay-registry-quay-quay-enterprise.apps.ocp1.azure.dso.digital.mod.uk/defnucsyr-dev-team-a/postgresql:v1.0.0
run-django:
- docker run -d -it --name ded-web -e DJANGO_SETTINGS_MODULE=$(CONFIG) -p 8000:8000 --network dednetwork --rm ded-web:latest
+ docker run -it --name ded-web -d -e DJANGO_SETTINGS_MODULE=$(CONFIG) -p 8000:8000 --network dednetwork --rm ded-web:latest
test:
python manage.py test
migrate-and-superuser: