News for hackers. Stuff that matters.
Re:Breaking up the Container Monolith by devonkim on Sunday August 27, 2017 @09:21AM (#15110668)
A possible option for containers that all run JVM applications is to have a volume mount for all of them that points to an external filesystem containing the JAVA_HOME contents. This somewhat violates certain containerization principles but can help reduce some disk usage across dozens of containers on a host.
Re:Breaking up the Container Monolith by IanCal on Sunday August 27, 2017 @09:49AM (#15110766)
You could base all the images on the same layer, then the disk space wouldn't be an issue, right?
Re:Breaking up the Container Monolith by devonkim on Sunday August 27, 2017 @06:44PM (#15113223)
It is an advantage in specific situations when you can't rebuild every container or you want to try to selectively update containers without rebuilding them. You should try to update the running containers as a rule but having options is helpful from time to time. In a properly managed container infrastructure it should be faster to update the container image reference before resorting to tactics like this.
Re:Breaking up the Container Monolith by IanCal on Friday September 01, 2017 @08:32AM (#15147801)
It would be interesting to consider what it'd be like to swap out layers directly, instead of having to "rebuild" the final image.

Perhaps a hack for a free weekend.

Re:Breaking up the Container Monolith by Spivak on Sunday August 27, 2017 @11:01AM (#15111049)
That would lead to a small image size because you would just apply the .jar to a base Java install but it doesn't do anything for the container size because they all will have their own JVM copy.
Re:Breaking up the Container Monolith by IanCal on Sunday August 27, 2017 @11:11AM (#15111091)
I don't understand what you mean for the container size. If they share the same base layer it won't use more disk space to store than splitting it up, surely.
Re:Breaking up the Container Monolith by riskable on Sunday August 27, 2017 @04:30PM (#15112554)
You're missing the fact that if they're all using the same layer (base image) for the JVM all the images will be deduplicated (well, CoW) so you could have a hundred different apps and they would only use the equivalent of a single image for the JVM (in terms of storage).