Public | Automated Build

Last pushed: 2 years ago
Short Description
Maven build image for Gitlab CI with SonarQube support with JSON results reading capability
Full Description

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 analysisId

$ wget -qO- http://sonarqube:9000/api/qualitygates/project_status?analysisId=$ID | jq -r .task.analysisId


3.3.9-jdk-8, latest: Dockerfile
3.3.9-jdk-8-alpine: Dockerfile


The alpine version also contains the jq JSON command line processor and jruby because some specific maven plugin issue.

Known issues

Libsass maven plugin issue

The pluging cannot work with alpine image, because it based on a C/C++ libsass library


Learn about limitations

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.

Use the jruby based plugin with alpine image

Docker Pull Command
Source Repository