ci.docker icon indicating copy to clipboard operation
ci.docker copied to clipboard

Add ubi-min based images

Open leochr opened this issue 4 years ago • 10 comments

Add ubi-min based images for kernel-slim and full. Use the Semeru JRE image (as opposed to JDK) as the base.

leochr avatar Oct 14 '20 14:10 leochr

Some investigation is needed to evaluate whether UBI-min based images would significantly reduce the size of Liberty images. Build ubi-min based image for kernel-slim tag (with OpenJ9 Java 8) and compare to relevant ubi based image

leochr avatar Nov 26 '20 21:11 leochr

I came looking for this because cloud security best practices say to use the smallest image you can. And the Ubuntu images are smaller than the UBI ones.

dougbreaux avatar Apr 04 '21 22:04 dougbreaux

Another option is basing our images on ubi-jre instead of ubi. Example: adoptopenjdk/openjdk8-openj9:ubi-jre vs adoptopenjdk/openjdk8-openj9:ubi

I think ubi-jre only packages the jre instead of the whole jdk.

For our ubuntu images we use jre images, so I would think we would want to do the same for ubi?

adoptopenjdk/openjdk11-openj9       ubi          590MB
adoptopenjdk/openjdk11-openj9       ubi-jre      376MB
adoptopenjdk/openjdk8-openj9        ubi          479MB
adoptopenjdk/openjdk8-openj9        ubi-jre      378MB

jdmcclur avatar Apr 27 '21 18:04 jdmcclur

There is also now ubi-micro. I've asked here for plans to support it.

arthurdm avatar Oct 30 '21 01:10 arthurdm

@verymahler please can you tell me which images are based on ubi-mimimal?

matthewpwilson avatar May 10 '22 11:05 matthewpwilson

@matthewpwilson They aren't. I removed my comment.

verymahler avatar May 10 '22 12:05 verymahler

@leochr is there any update on this? your comment on the PR says:

Once the images are in icr.io, the Liberty images will need to switch to those.

But its been over 6 months...is the Semeru runtimes team planning to make ubi-min (or ubi-micro) images available?

lmsurpre avatar Jul 21 '22 14:07 lmsurpre

@leochr - Any update on this? Any outlook?

jdmcclur avatar Jan 30 '23 20:01 jdmcclur

Sorry I missed the above questions before.

Semeru images based on ubi-min + JRE are now available in icr.io for all platforms. We will plan to build Liberty images using them.

leochr avatar Mar 11 '23 01:03 leochr

Hi @leochr After 6 months any results for building the Liberty image on the top of Semeru ubi-min + JRE?

arturobrzut avatar Sep 21 '23 12:09 arturobrzut