I'm trying to deploy a Java Web application located in my Host OS (Windows 10) and I would like to mount the mentioned webapp as a directory under Tomcat Docker Container (location /usr/local/tomcat/webapps/mywebapp
).
I'm running the following command in the Docker terminal (absolute path for my webapp in Windows). Note: "mywebapp" host directory already contains the deployed/uncompressed war.
docker run --name=tomcat_7_0_78 --detach --publish 8080:8080 -v /c/desarrollo/workspace/webMavenTest/target/mywebapp:/usr/local/tomcat/webapps/mywebapp tomcat:7.0.78
I can see that Tomcat starts and the webapps Container folder has several default webapps inside it including the "mywebapp" folder. The problem is that it is empty so the webapp is not working.
I would like to use this to integrate my applications in the Eclipse IDE with Docker and achieve redeploying the application when I make changes through my IDE.
Any insight?
Thanks in advance.