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