Sign inSign up

grizzlysoftware/maven-non-root

By grizzlysoftware

•Updated almost 7 years ago

Docker Image to run Maven as non root user

Image
0

10K+

grizzlysoftware/maven-non-root repository overview

⁠Docker Image to run Apache Maven as non root user

this is fork of jtim's repository⁠. This repository just adds images that are combination of various Maven and OpenJDK versions.

Available Maven versions:

  • 3.6.2
  • 3.6.1
  • 3.5.4
  • 3.2.5
  • 3.1.1
  • 3.0.5

Available OpenJDK versions:

  • 8u222-jdk-stretch
  • 11.0.4-jdk-stretch

Docker image tags: basicaly it gives us $mvn_version x $jdk_version, so:

  • 3.0.5-11.0.4-jdk-stretch
  • 3.0.5-8u222-jdk-stretch
  • 3.1.1-11.0.4-jdk-stretch
  • 3.1.1-8u222-jdk-stretch
  • 3.2.5-11.0.4-jdk-stretch
  • 3.2.5-8u222-jdk-stretch
  • 3.5.4-11.0.4-jdk-stretch
  • 3.5.4-8u222-jdk-stretch
  • 3.6.1-11.0.4-jdk-stretch
  • 3.6.1-8u222-jdk-stretch
  • 3.6.2-11.0.4-jdk-stretch
  • 3.6.2-8u222-jdk-stretch

Images are pushed to Dockerhub⁠

⁠Example how to use this Docker image using Gitlab CI

.gitlab-ci.yml

stages:
  - build

java-maven-3.6.2-11.0.4-jdk-stretch-job:
  image: grizzlysoftware/maven-non-root:3.6.2-11.0.4-jdk-stretch
  stage: build
  script:
    - whoami
    - java -version
    - mvn -v
    - mvn clean package

Tag summary

Content type

Image

Digest

Size

305.6 MB

Last updated

almost 7 years ago

docker pull grizzlysoftware/maven-non-root:3.6.2-11.0.4-jdk-stretch