Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34875

docker-nexus3: removal of chef dropped support for NEXUS_CONTEXT

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.41.1
    • Fix Version/s: None
    • Component/s: Docker-Nexus
    • Sprint:
      NXRM Sentinels Sprint 53
    • Notability:
      n/a
    • InvestmentLayer:
      maintenance
    • Aha Concept:
      non-concept

      Description

      Original report is https://github.com/sonatype/docker-nexus3/commit/8ff3c50ffb4cc6d767a803b5adb93cd28f575687#commitcomment-82034921

      It appears the docker image for Nexus Repository 3 prior to 3.41.1 supports injection of the context path via environment.

      NEXUS_CONTEXT is read in by docker, and then passed to chef as "context_path":

      https://github.com/sonatype/docker-nexus3/blob/master/solo.json.erb#L48

      Chef would then pass that into nexus-context-path in nexus.properties:

      https://github.com/sonatype/chef-nexus-repository-manager/blob/e8c04ee607de36a583348a0d2faa403cf880b702/templates/nexus.properties.erb#L5

      Acceptance

      • Deployers of the docker-nexus3 container can pass a value for the nexus-context-path property in nexus.properties via environment.

      Workaround: Start the docker container with "-Dnexus-context-path=/nexus" in "INSTALL4J_ADD_VM_PARAMS":

      docker run -d -p 8081:8081 --name=nexus -e INSTALL4J_ADD_VM_PARAMS="-Dnexus-context-path=/nexus -Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=/nexus-data" sonatype/nexus3:latest

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              nblair Nicholas Blair
              Last Updated By:
              Matthew Piggott Matthew Piggott
              Team:
              NXRM - Sentinels
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title