confluence-publisher icon indicating copy to clipboard operation
confluence-publisher copied to clipboard

#365 Upgrade base image to JRE 17

Open vovtz opened this issue 2 years ago • 5 comments

#365 In the first place for security concerns, but also to diminish the total image size and get some free performance improvements, upgrade to JRE 17 base image.

vovtz avatar Jun 21 '22 17:06 vovtz

#365

vovtz avatar Jun 22 '22 15:06 vovtz

Hi @vovtz, thank you for your pull request and sorry for the late reply. I locally built the Docker image based on your changes, but I end up with a much larger image for the Confluence Publisher compared to the current version:

Based on openjdk:8-jre-alpine         170MB
Based on openjdk:17.0.2-slim-bullseye 556MB

Is this to be expected? Do you see any chance to reduce the resulting image size while still moving to JRE 17? Thank you for your efforts!

cstettler avatar Sep 27 '22 06:09 cstettler

Is this to be expected? Do you see any chance to reduce the resulting image size while still moving to JRE 17? Thank you for your efforts!

Not really, the size difference between those base images is much smaller:

vovtz avatar Sep 28 '22 17:09 vovtz

The precise version I used, OpenJDK 17.0.2 Bullseye Slim, has the same size: 210.63 MB.

vovtz avatar Sep 28 '22 17:09 vovtz

Uncompressed, the sizes are (with between parentheses the size after having installed the necessary dependencies, GraphViz and the DejaVu TrueType font):

More importantly, the Alpine image didn’t receive updates for 15 months and therefore still contains a multitude of known vulnerabilities.

vovtz avatar Oct 07 '22 11:10 vovtz