Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-18531

Setting environment variables to configure tomcat server.xml is not working for Artifactory docker installation when using custom uid:gid to run the container

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Docker, Docker Image
    • Labels:
      None

      Description

      Setting environment variables to configure tomcat server.xml is not working for Artifactory docker installation when using custom uid:gid to run the container. It fails with the below error when trying to update the server.xml.template with the env variable value, as the "server.xml.template" file under the /opt/jfrog/artifactory/ is still owned by the "artifactory" user.

      2019-02-15 21:03:01   [87 entrypoint-artifactory.sh] Customising Tomcat server.xml if needed

      sed: couldn't open temporary file /opt/jfrog/artifactory/sedYljrHx: Permission denied

      2019-02-15 21:03:01   [47 entrypoint-artifactory.sh] ERROR: Updating SERVER_XML_FULL in /opt/jfrog/artifactory/server.xml.template failed

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nihalc@jfrog.com Nihal Reddy Chinna Choudhary
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: