Skip to content
/ maven Public

Docker image with maven and some other utilities which may be used during builds @vpro

License

Notifications You must be signed in to change notification settings

vpro/maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4523d95 · Apr 4, 2025

History

88 Commits
Jan 6, 2025
Jun 15, 2021
Feb 22, 2025
Aug 26, 2024
Nov 28, 2024
Aug 12, 2024
Apr 4, 2025
Sep 19, 2024
Mar 14, 2025
Feb 22, 2025
Feb 26, 2025
Feb 22, 2025

Repository files navigation

maven docker image

Dedicated Maven Docker images which provides additional file resources needed.

Description

A specialization of maven:3.9-eclipse-temurin-21 providing also

  • openshift cli (oc)

  • yq (lightweight yaml processor)

  • ssh

  • ssh agent

Used by

Api functional tests

Tests are using it (they can use oc to port forward for JMX access)

YQ Use

Why is this included ?

Maven Release

Image specifically created to perform a maven release. For this you need the ability to check out a branch (not detached head) and preform release commit using a private ssh key.

When running it expects an GITLAB_RUNNER_PRIVATE_KEY argument containing the private key to use for git checkout and pushing of commits:

  docker run -it \
    --env "GITLAB_RUNNER_PRIVATE_KEY=$(cat ~/.ssh/id_rsa)" \
    ghcr.io/vpro/maven:latest \
    /bin/bash -c "git clone [email protected]/npo-identity/poms/poms-maven.git && cd maven-release && mvn release:prepare release:perform"