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

Enable configuring the server by environment variables

    XMLWordPrintable

    Details

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

      Description

      Each property listed in the file conf/sonar.properties should be overridable from an environment variable. This behavior is required for a proper support of Docker runtimes.

      The naming conversion is strict. Any letter of the property are upper-cased and any special character like dot or dash is replaced by an underscore. For instance the property sonar.foo.barBaz can be set through the env variable SONAR_FOO_BARBAZ.
      Env variables take precedence.

      No need for disabling the support of env variables on non-Docker runtimes.

      The feature and the newly env variables should be documented. The file conf/sonar.properties should only mention the feature. No need to describe each variable.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michal.duda Michal Duda (Inactive)
              Reporter:
              michal.duda Michal Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: