Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion global_config/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ CONFIG=dev
CONFIG_SHORT=dv
AZURE_SUBSCRIPTION=s189-teacher-services-cloud-test
AZURE_RESOURCE_PREFIX=s189t01
TERRAFORM_MODULES_TAG=skip-postgres-version-changes
TERRAFORM_MODULES_TAG=skip-postgres-version-changes-working-dir
2 changes: 1 addition & 1 deletion global_config/dv_review.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ CONFIG=dv_review
CONFIG_SHORT=rv
AZURE_SUBSCRIPTION=s189-teacher-services-cloud-development
AZURE_RESOURCE_PREFIX=s189d01
TERRAFORM_MODULES_TAG=skip-postgres-version-changes
TERRAFORM_MODULES_TAG=skip-postgres-version-changes-working-dir
12 changes: 8 additions & 4 deletions terraform/aks/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ module "api_application" {
kubernetes_secret_name = module.api_application_configuration.kubernetes_secret_name

docker_image = var.docker_image
command = ["/bin/ash", "-c", "cd /Apps/Api/; dotnet TeachingRecordSystem.Api.dll;"]
command = ["dotnet", "TeachingRecordSystem.Api.dll"]
working_dir = "/Apps/Api"
web_port = 3000
probe_path = "/health"
replicas = var.api_replicas
Expand Down Expand Up @@ -109,7 +110,8 @@ module "authz_application" {
kubernetes_secret_name = module.authz_application_configuration.kubernetes_secret_name

docker_image = var.docker_image
command = ["/bin/ash", "-c", "cd /Apps/AuthorizeAccess/; dotnet TeachingRecordSystem.AuthorizeAccess.dll;"]
command = ["dotnet", "TeachingRecordSystem.AuthorizeAccess.dll"]
working_dir = "/Apps/AuthorizeAccess"
web_port = 3000
probe_path = "/health"
replicas = var.authz_replicas
Expand Down Expand Up @@ -152,7 +154,8 @@ module "ui_application" {
kubernetes_secret_name = module.ui_application_configuration.kubernetes_secret_name

docker_image = var.docker_image
command = ["/bin/ash", "-c", "cd /Apps/SupportUi/; dotnet TeachingRecordSystem.SupportUi.dll;"]
command = ["dotnet", "TeachingRecordSystem.SupportUi.dll"]
working_dir = "/Apps/SupportUi"
web_port = 3000
probe_path = "/health"
replicas = var.ui_replicas
Expand Down Expand Up @@ -197,7 +200,8 @@ module "worker_application" {
kubernetes_secret_name = module.worker_application_configuration.kubernetes_secret_name

docker_image = var.docker_image
command = ["/bin/ash", "-c", "cd /Apps/Worker/; dotnet TeachingRecordSystem.Worker.dll;"]
command = ["dotnet", "TeachingRecordSystem.Worker.dll"]
working_dir = "/Apps/Worker"
replicas = var.worker_replicas
max_memory = var.worker_max_memory
enable_logit = var.enable_logit
Expand Down
Loading