diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-23 15:05:49 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-23 15:05:49 +0100 |
commit | 5f9ca9b3e597a9dfda9ffb3af25a60b2c7309986 (patch) | |
tree | 345d5259906a72a145095a6e465689d8d8a513d0 /Makefile | |
parent | 84cdaedf5cbde6a60e2840ab35fcccf8106bd0f2 (diff) |
Ditched the redhat builder stage
- Run make to build and run
- Does not use volumes do database data is not retained
May have to revert if the CICD kicks this out for using a Dockerhub
image.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -all: stop create-network build-postgres run-postgres build-django run-django migrate-and-superuser +all: stop create-network build-postgres run-postgres build-django run-django 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 -it --name ded-web -d -e DJANGO_SETTINGS_MODULE=$(CONFIG) -p 8000:8000 --network dednetwork --rm ded-web:latest + docker run -d -it --name ded-web -e DJANGO_SETTINGS_MODULE=$(CONFIG) -p 8000:8000 --network dednetwork --rm ded-web:latest test: python manage.py test migrate-and-superuser: |