Maven with CLI JSON parser
This image is a general build image for Gitlab CI projects which runs SonarQube.
To check the quality gates the build image must be able to parse and handle the SonarQube JSON response.
This image can be used for any standard Maven build with JSON parsing feature.
It based on the official Maven image.
It uses the jq command line JSON processor to achieve this behavior.
For example you can find the
$ wget -qO- http://sonarqube:9000/api/qualitygates/project_status?analysisId=$ID | jq -r .task.analysisId
The alpine version also contains the
jq JSON command line processor and
jruby because some specific
maven plugin issue.
Libsass maven plugin issue
The pluging cannot work with alpine image, because it based on a C/C++ libsass library
<plugin> <groupId>com.github.warmuuh</groupId> <artifactId>libsass-maven-plugin</artifactId> </plugin>
Alpine Linux doesn’t use GNU C library (glibc) as conventional distributions like Debian, Red Hat or Gentoo. Instead, it uses musl libc, a lightweight, fast, simple and standards-conform C library.
jruby based plugin with alpine image
<plugin> <groupId>nl.geodienstencentrum.maven</groupId> <artifactId>sass-maven-plugin</artifactId> </plugin>