You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2020/05/10 13:10:51 UTC
Docker images & Jenkins
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 ?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org
Re: Docker images & Jenkins
Posted by Emmanuel Lécharny <el...@gmail.com>.
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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org
Re: Docker images & Jenkins
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
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. Reason is that the the Maven images themself are based
on the JDK images.
Do you want to try?
Kind Regards,
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org