JBoss EAP 7.1 for OpenShift cannot access log with jboss user
I have a dockerfile which inherits from JBoss EAP 7.1 Openshift:
FROM registry.access.redhat.com/jboss-eap-7/eap71-openshift
I am copying to deployments directory my ear file and I am starting my app with a command:
$JBOSS_HOME/bin/standalone.sh --server-config=standalone-full.xml
I see some errors in the console when the container is starting. The problem is that default jboss user cannot access logs files and has no access to /opt/eap/standalone/log. I see the following exceptions during startup:
09:22:36,117 ERROR [stderr] (Controller Boot Thread) Caused by: java.io.FileNotFoundException: /opt/eap/standalone/log/server.log (Permission denied)