Attempting to run Tomcat in a Docker container on local Mac. Have set the Env Variables in the Container Config dialog of Intellij, and sure enough container seems to be looking for the file on startup but throws the error.
The file does indeed exist in that location, and permissions are r/w across the board.
Here is the Services Build Log produced when attempting to deploy the container:
Deploying 'TomcatContainer Image id: tomcat:latest'... Existing container found: 41dd80a5fed99c657955cb773db8526ae1120cde54ae66889554ba3213c4ef7d, removing... Creating container... Container Id: b14609a8cf48d619a3e1d7607410557456fb1a0fba40fed52b455b211e130147 Container name: 'TomcatContainer' Starting container 'TomcatContainer' 'TomcatContainer Image id: tomcat:latest' has been deployed successfully.
Environment Variables from Docker Inspect:
JAVA_HOME
Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/
CATALINA_HOME
Users/blah/yadda/apache-tomcat-9.0.45
However running echo $JAVA_HOME
and echo $CATALINA_HOME
from the project folder return empty.
These below (from Inspect) appear to be defaults from Docker Image...but these files do not exist on my local; not sure what to make of this:
TOMCAT_NATIVE_LIBDIR
/usr/local/tomcat/native-jni-lib
LD_LIBRARY_PATH
/usr/local/tomcat/native-jni-lib
Thanks in advance.