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

Docker : Copy conf and embedded plugins to bound folders at startup

    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

      When a file system directory is bound to a either the conf or extensions SQ directory in the docker run command, if this directory is empty, then SQ will start with empty conf and/or extensions directory. While in the former case, SQ will actually manage to start, with the later SQ will have no plugin at all and won't be operable.
      On top of this, this was certainly not the user's intent to start a failed SQ.

      To workaround this problem, the SQ image should make sure that, in case conf and/or extensions directories are totally empty, they are populated as if a fresh installed SQ was started.

       Notes:

      1. when binding docker folders, if that folder is created by the docker run command creating the SQ container, Docker will automatically copy the content put in this directory during the image build to the created folder
      2. Docker won't initialize anything, however, if the docker folder was created before the `docker run` call
      3. when binding a local directory, Docker will not copy any data to the mounted directory either

       

      This Issue is bound to issue #322 in Github project.

        Attachments

          Issue Links

            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: