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

Running Artifactory docker container without root access

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: Docker

      Description

      Artifactory Docker container currently starts the entrypoint as root, which eventually runs artifactory.sh as user artifactory.
      This needs to change, so the entrypoint will be triggered as artifactory user.
      Move all functionality that needs root to Docker build time. Any run time issues should result in a graceful error message and termination of the container.

      [OpenShift] Getting useradd error because OpenShift discourages running docker images as root. Need to add user to each OpenShift project. The fix is to remove the useradd in the docker images. Useradd in docker image is to start artifactory with artifactory:artifactory.

      The following functionalities need to move out from the entrypoint the to Dockerfile:

      • Creating artifactory user
      • Chown on the data dir (will be replaced by an error)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                galba Gal Ben Ami
                Reporter:
                ankushc Ankush Chadha
                Assigned QA:
                Barak Hacham
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: