@@ -23,8 +23,8 @@ module "migrations" {
2323 environment = local. app_name_suffix
2424 service_name = var. service_name
2525 docker_image = var. docker_image
26- commands = [" trscli " ]
27- arguments = [" migrate-db" , " --connection-string" , " $(CONNECTION_STRING)" ]
26+ commands = [" dotnet " ]
27+ arguments = [" /Apps/TrsCli/trscli.dll " , " migrate-db" , " --connection-string" , " $(CONNECTION_STRING)" ]
2828 job_name = " migrations"
2929 enable_logit = var. enable_logit
3030
@@ -66,7 +66,8 @@ module "api_application" {
6666 kubernetes_secret_name = module. api_application_configuration . kubernetes_secret_name
6767
6868 docker_image = var. docker_image
69- command = [" /bin/ash" , " -c" , " cd /Apps/Api/; dotnet TeachingRecordSystem.Api.dll;" ]
69+ command = [" dotnet" , " TeachingRecordSystem.Api.dll" ]
70+ working_dir = " /Apps/Api"
7071 web_port = 3000
7172 probe_path = " /health"
7273 replicas = var. api_replicas
@@ -109,7 +110,8 @@ module "authz_application" {
109110 kubernetes_secret_name = module. authz_application_configuration . kubernetes_secret_name
110111
111112 docker_image = var. docker_image
112- command = [" /bin/ash" , " -c" , " cd /Apps/AuthorizeAccess/; dotnet TeachingRecordSystem.AuthorizeAccess.dll;" ]
113+ command = [" dotnet" , " TeachingRecordSystem.AuthorizeAccess.dll" ]
114+ working_dir = " /Apps/AuthorizeAccess"
113115 web_port = 3000
114116 probe_path = " /health"
115117 replicas = var. authz_replicas
@@ -152,7 +154,8 @@ module "ui_application" {
152154 kubernetes_secret_name = module. ui_application_configuration . kubernetes_secret_name
153155
154156 docker_image = var. docker_image
155- command = [" /bin/ash" , " -c" , " cd /Apps/SupportUi/; dotnet TeachingRecordSystem.SupportUi.dll;" ]
157+ command = [" dotnet" , " TeachingRecordSystem.SupportUi.dll" ]
158+ working_dir = " /Apps/SupportUi"
156159 web_port = 3000
157160 probe_path = " /health"
158161 replicas = var. ui_replicas
@@ -197,7 +200,8 @@ module "worker_application" {
197200 kubernetes_secret_name = module. worker_application_configuration . kubernetes_secret_name
198201
199202 docker_image = var. docker_image
200- command = [" /bin/ash" , " -c" , " cd /Apps/Worker/; dotnet TeachingRecordSystem.Worker.dll;" ]
203+ command = [" dotnet" , " TeachingRecordSystem.Worker.dll" ]
204+ working_dir = " /Apps/Worker"
201205 replicas = var. worker_replicas
202206 max_memory = var. worker_max_memory
203207 enable_logit = var. enable_logit
0 commit comments