From ece11ce6b0bf699bffdf66d7e9474351f8d28d35 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 23 May 2024 17:38:21 +0100 Subject: Trying with a RHEL ubi image to get round CVEs --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e0ebf25..4eba4fc 100644 --- a/Makefile +++ b/Makefile @@ -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,8 +19,8 @@ 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 -it -d --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: - docker exec -it ded-web sh -c "python manage.py migrate && python manage.py createsuperuser" + docker exec -it ded-web sh -c "python3.12 manage.py migrate && python3.12 manage.py createsuperuser" -- cgit v1.2.3