This is a CentOS 7 image based which contains Java 1.8 and Maven 3.5.4 installed. The base image used is stakater/java-centos.
This image runs as user jenkins
with id 10000
, so that it can run maven as a non-root user which can access Jenkins directories and fiels as well, in order to seamlessly run as a Jenkins slave.
You can run this image by: docker run -it stakater/maven-jenkins:7-1.8-3.5.4 /bin/bash
This is a builder image that's used in Stakater pipelines to build maven based projects.
The idea of a builder image is it contains tools required to build an image so we don't have to include them in the final image.
The builder image is referenced in a Jenkins kubernetes-plugin containerTemplate configuration. See https://github.com/jenkinsci/kubernetes-plugin#pod-and-container-template-configuration for more details.
Tags 7-1.8-3.5.4: CentOS 7 with java jdk 1.8 and Maven 3.5.4 installed