The last couple of days I spend a lot of time digging into the docker. I am really impressed with the opportunity to have a development environment that can be the same as in production!
At the moment, I want to start small and begin to improve the development process. We are developing Java applications that are deployed to tomcat. Developers use IDEs such as Eclipse and IntelliJ.
During development, you configure the tomcat environment in the IDE so that you can automatically deploy and debug your code. Therefore, the tomcat base directory must be accessible for configuration.
I currently have a deber debian image with tomcat installed on / opt / tomcat.
Now I was hoping to associate the contents of the container / opt / tomcat directory with the directory on my host. Unfortunately, this feature does not seem to exist. With the -v option, you can only mount the host directory in the container, and not vice versa.
Currently, the only solution that I see will be to build the container webapps directory and drop my war file here, which, in my opinion, is quite unproductive.
You need to start / restart tomcat manually, only remote debugging is possible, you do not have your logs in the IDE console.
So, are there any ideas on optimizing Java Webapp development workflow using docker?
source share