Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-12278

Docker : Add healthcheck

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      As suggested by Pascal Braconnier, on the PR Add healthcheck on Dockerfile, adding a healcheck on the Docker image we provide is an easy improvement who bring value for production use of the image.

      The PR is on the 6.7.6-community and 7.6-community that we don't plan to support. Be we can apply the PR on the freshly released 7.9-community version, which use the SQ LTS.

      As an entrypoint to the healcheck, we need to choose carefuly what endpoint to use. api/system/ping is fast but do not check a lot. We need to be careful about the behaviour of the choosed endpoint during migration : we don't want the docker container to be restarted while the DB is migrated at startup.

        Attachments

          Activity

            People

            Assignee:
            pierre.guillot Pierre Guillot
            Reporter:
            pierre.guillot Pierre Guillot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: