On 10/05/2020 17:29, Stefan Seelmann wrote:
Hi,
On 5/10/20 3:10 PM, Emmanuel Lécharny wrote:
Hi !
we are using docker images to run a pipeline on directory projects.
Those images are built using maven:3-jdk-${JDK_VERSION}, wouldn't it be
lighter to use maven:3-jdk-${JDK_VERSION}-slim ?
Sure, we can try. However keep in mind that only for JDK 8 and 11 such
slim images exist, they are based on Debian. The JDK 14 image is based
on Oracle Linux.
There is a openjdk 14 images that uses debian buster slim :
https://github.com/carlossg/docker-maven/blob/master/openjdk-14-slim/Dockerfile
Now, here is how much is saved.... (I have tried with MINA) :
$ docker images
REPOSITORY TAG IMAGE ID
CREATED SIZE
apachemina/maven-build jdk-8 1180f0176401 2 minutes
ago 522MB
apachemina/maven-build jdk-8-slim b4b8eafb54bd 14 hours
ago 303MB
apachemina/maven-build jdk-11 d782a421ad53 40 seconds
ago 639MB
apachemina/maven-build jdk-11-slim b46b4f0e3b0f 3 seconds
ago 420MB
apachemina/maven-build jdk-14 a1b186872434 3 minutes
ago 508MB
apachemina/maven-build jdk-14-slim 249377aa6856 10 minutes
ago 432MB
Reason is that the the Maven images themself are based
on the JDK images.
Do you want to try?
I'll give it a try with ApacheDS.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]