Dear DHIS2 docker experts + @Gintare,
I was trying to use dhis2 docker images but facing the following issue (in several images) while generating the container,
SEVERE [main] org.apache.catalina.startup.HostConfig.beforeStart Unable to create directory for deployment: [/usr/local/tomcat/conf/Catalina/localhost]
I think the issue is related to the permission of the directory,
root@03c31ee8e036:/usr/local/tomcat# ls -la
total 200
drwxr-x— 1 root tomcat 4096 Mar 9 15:09 .
drwxr-xr-x 1 root root 4096 Oct 19 2019 …
-rw-r----- 1 root tomcat 18982 Oct 7 2019 BUILDING.txt
-rw-r----- 1 root tomcat 5408 Oct 7 2019 CONTRIBUTING.md
-rw-r----- 1 root tomcat 57092 Oct 7 2019 LICENSE
-rw-r----- 1 root tomcat 2333 Oct 7 2019 NOTICE
-rw-r----- 1 root tomcat 3255 Oct 7 2019 README.md
-rw-r----- 1 root tomcat 6849 Oct 7 2019 RELEASE-NOTES
-rw-r----- 1 root tomcat 16262 Oct 7 2019 RUNNING.txt
drwxr-x— 1 root tomcat 4096 Mar 9 15:09 bin
drwxr-x— 1 root tomcat 4096 Feb 18 13:20 conf
drwxr-x— 1 root tomcat 4096 Oct 19 2019 include
drwxr-x— 1 root tomcat 4096 Oct 19 2019 lib
drwxr-x— 1 tomcat tomcat 4096 Mar 9 15:10 logs
drwxr-x— 1 root tomcat 4096 Oct 19 2019 native-jni-lib
drwxr-x— 1 tomcat tomcat 4096 Oct 19 2019 temp
-rwxr-x— 1 root tomcat 3695 Mar 9 15:09 wait-for-it.sh
drwxr-x— 1 root tomcat 4096 Mar 9 15:10 webapps
drwxr-x— 1 tomcat tomcat 4096 Mar 9 15:10 work
I have tried changing the permission from the container and restart it (not regenerate) but the permission is reset back to the original when it is restarted. Is there any script which is running to set the directory permissions?
Alternatively, please suggest if i should check any other configurations.
Thank you in advance.