From 4aab5e3d22818df28172aa47bd52e77c76b8d483 Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:01:24 -0500 Subject: [PATCH] Change healthcheck function on windows. --- .ci/docker/Dockerfile.aca-windows | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/docker/Dockerfile.aca-windows b/.ci/docker/Dockerfile.aca-windows index d9c33c5f..a85d4201 100644 --- a/.ci/docker/Dockerfile.aca-windows +++ b/.ci/docker/Dockerfile.aca-windows @@ -87,6 +87,6 @@ RUN Get-Item "C:/ProgramData/hirs/certificates/HIRS/rsa_3k_sha384_certs/HIRS_lea RUN Get-Item "C:/ProgramData/hirs/certificates/HIRS/ecc_512_sha384_certs/HIRS_leaf_ca3_ecc_512_sha384.pem" | Import-Certificate -CertStoreLocation "Cert:\LocalMachine\Root" # The container will report a health state based on when embedded tomcat finishes loading. If the ACA isn't loaded after the timeout, the container will report that it is unhealthy. -HEALTHCHECK --start-period=50s --interval=1s --timeout=90s CMD curl -Uri https://localhost:8443/HIRS_AttestationCAPortal/portal/index +HEALTHCHECK --start-period=50s --interval=1s --timeout=90s CMD Invoke-WebRequest -Uri https://localhost:8443/HIRS_AttestationCAPortal/portal/index CMD ["pwsh", "-Command", "pwsh -ExecutionPolicy Bypass C:/hirs/package/win/aca/aca_bootRun.ps1"] \ No newline at end of file