Docker-sonarqube: Use AdoptOpenJDK image as base instead of OpenJDK image

Created on 26 Jul 2019  路  6Comments  路  Source: SonarSource/docker-sonarqube

Right now, in our docker images we use Oracle's OpenJDK. The problem with this is docker images for OpenJDK that we use a base for our images are very large. Switching to AdoptOpenJDK would enable us to use alpine (or in some cases alpine-slim) versions of JDK images which are much smaller due to a much smaller system distribution.

Most helpful comment

Just be careful as some of the plugins break when a too lightweight version is being used.

Something like the svg badges depend on libfontmanager and since the current openjdk is the jre-slim, it causes the container to break since it is not included.

All 6 comments

Please consider the fact that alpine images are slower than debian/ubuntu images cause of different libc implementations and other system libs.

We switched from alpine to normal images for SQ cause of perfomance degradation at CE

Thanks for the feedback @nixel2007 , we will make sure to benchmark this 馃憤

Use JRE instead of JDK to reduce size. For example:

Just be careful as some of the plugins break when a too lightweight version is being used.

Something like the svg badges depend on libfontmanager and since the current openjdk is the jre-slim, it causes the container to break since it is not included.

@michal-duda-sonarsource can we close this ?

Closing, since we switched to openjdk:11-jre-slim.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EPinci picture EPinci  路  9Comments

davidlaughlin picture davidlaughlin  路  6Comments

avarf picture avarf  路  8Comments

mmaier2 picture mmaier2  路  6Comments

magnus919 picture magnus919  路  6Comments