Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-2867

Containers health check scripts returning invalid exit code

XMLWordPrintable

      A ready_probe.sh script is used in the sdc-FE, sdc-BE and sdc-onboarding-BE containers to check if the container service is up (health check).

      This script was returning, as exit code, the http status from the health check call.

      The exit code ranges from 0 to 255, so it should not be returning the http status code. This was breaking the health check for the docker_run.sh script, which was always getting a 0 return code in a case of 503 http status for example.

            andre.schmid andre.schmid
            andre.schmid andre.schmid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: