Need help with the best practices for sharing libraries (jars) with multiple containers.
We have dozens of java web applications running in tomcats that we have containerized. All of the applications use and share a handful of custom libraries. Currently we are just bind mounting each container to a directory on the host file system in order to keep to only one copy of the libraries. But we really have one copy per node. This works, but it presents deployment issues with keeping these directories in sync between all the nodes in the cluster.
We are resistant to putting these libraries inside each container because we want to avoid having to rebuild every app when a new library version is introduced.
What are the best practices for this?
Thanks in advance!