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

Artifactory in Docker cannot start with a custom user id

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.2.0
    • Fix Version/s: 6.6.0
    • Component/s: None
    • Environment:

      Artifactory Docker with custom user id

    • Regression:
      Yes

      Description

      As an Artifactory in Docker deployer, I want to be able to set custom user and group ids to match existing user mappings on my system.

      The new Artifactory (6.2.0) lost this ability due to permissions on the file system.

      Running with:

      $ docker run ... --user 1717:1818 docker.bintray.io/jfrog/artifactory-pro:6.2.0

      Fails with the following error:

      2018-08-16 10:11:24  [120 entrypoint-artifactory.sh] Testing directory (/opt/jfrog/artifactory) has read/write permissions
      /entrypoint-artifactory.sh: line 125: /opt/jfrog/artifactory/test-permissions: Permission denied
      2018-08-16 10:11:24  [141 entrypoint-artifactory.sh] ###########################################################
      2018-08-16 10:11:24  [142 entrypoint-artifactory.sh] /opt/jfrog/artifactory is NOT writable!
      2018-08-16 10:11:24  [143 entrypoint-artifactory.sh] Directory: /opt/jfrog/artifactory, permissions: 755, owner: artifactory, group: artifactory
      2018-08-16 10:11:24  [144 entrypoint-artifactory.sh] Mounted directory must be writable by user 'artifactory' (id 1030)
      2018-08-16 10:11:24  [145 entrypoint-artifactory.sh] ###########################################################
      2018-08-16 10:11:24   [40 entrypoint-artifactory.sh] ERROR: Directory /opt/jfrog/artifactory has bad permissions for user 'artifactory'
      

      NOTE - Artifactory entrypoint does start with user id 1717 and group id 1818, but the file system created during the docker build stage is assigned to the user id 1030 that was also created at build time.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eldada Eldad Assis
                Reporter:
                eldada Eldad Assis
                Assigned QA:
                Konstantin Shenderov
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: