Skip to content

Commit

Permalink
modified: IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile
Browse files Browse the repository at this point in the history
	modified:   terraform/db.tf
  • Loading branch information
vrsorheim committed Jul 7, 2024
1 parent 7de5c90 commit 49d3a7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion IMOMaritimeSingleWindow/Server/SqlScripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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;'"]
11 changes: 8 additions & 3 deletions terraform/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49d3a7b

Please sign in to comment.