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)