From 49d3a7b8c8bc12bd4a620916d83bdf25f087f1ab Mon Sep 17 00:00:00 2001 From: vegardrs Date: Sun, 7 Jul 2024 22:34:08 +0200 Subject: [PATCH] modified: IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile modified: terraform/db.tf --- IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile | 1 - terraform/db.tf | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile b/IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile index 3e70f1f8..2adc9cd7 100644 --- a/IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile +++ b/IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile @@ -5,5 +5,4 @@ WORKDIR /workspaces/verify RUN apt-get update && apt-get install -y postgresql-client - CMD ["sh", "-c", "psql -h $PGHOST -U $PGUSER -d $PGDATABASE -c 'SELECT * FROM country;'"] \ No newline at end of file diff --git a/terraform/db.tf b/terraform/db.tf index c2e3b4dc..1dec61fb 100644 --- a/terraform/db.tf +++ b/terraform/db.tf @@ -80,11 +80,16 @@ resource "azurerm_container_group" "db_verifier" { os_type = "Linux" ip_address_type = "Public" + # image_registry_credential { + # server = "crimomsw.azurecr.io" + # username = "your_acr_service_principal_client_id" + # password = "your_acr_service_principal_client_secret" + # } container { name = "db-verifier" - image = "crimomsw.azurecr.io/db-verifier:latest" - cpu = "0.5" - memory = "1.5" + image = "${data.azurerm_container_registry.acr.login_server}/db-verifier:latest" + cpu = 0.25 + memory = "0.5Gi" ports { port = 443 protocol = "TCP"