Skip to content

Commit

Permalink
Merge pull request rh-openjdk#499 from jmtd/OPENJDK-3033-singleton-ub…
Browse files Browse the repository at this point in the history
…i9-m21

Openjdk 3033 singleton ubi9 m21
  • Loading branch information
jmtd authored May 31, 2024
2 parents b9f512d + b9b4473 commit db72228
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
12 changes: 12 additions & 0 deletions modules/maven/21/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
set -e

# This file is shipped by a Maven package and sets JAVA_HOME to
# an OpenJDK-specific path. This causes problems for OpenJ9 containers
# as the path is not correct for them. We don't need this in any of
# the containers because we set JAVA_HOME in the container metadata.
# Blank the file rather than removing it, to avoid a warning message
# from /usr/bin/mvn.
if [ -f /etc/java/maven.conf ]; then
:> /etc/java/maven.conf
fi
21 changes: 21 additions & 0 deletions modules/maven/21/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
schema_version: 1
name: jboss.container.maven
version: '3.8.21'
description: Provides Maven v3.8 capabilities to an image.

envs:
- name: JBOSS_CONTAINER_MAVEN_38_MODULE
value: /opt/jboss/container/maven/38/
- name: MAVEN_VERSION
value: '3.8'

modules:
install:
- name: jboss.container.maven.module

packages:
install:
- maven-openjdk21

execute:
- script: configure.sh
4 changes: 2 additions & 2 deletions ubi9-openjdk-21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ modules:
- name: jboss.container.openjdk.jdk
version: "21"
- name: jboss.container.maven
version: "3.8.17"
version: "3.8.21"
- name: jboss.container.util.tzdata
- name: jboss.container.java.s2i.bash
- name: jboss.container.util.tzdata
- name: jboss.container.java.singleton-jdk

help:
add: true
Expand Down

0 comments on commit db72228

Please sign in to comment.