Skip to content

Commit

Permalink
(Experimental) move common image config to common module
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Nov 25, 2024
1 parent 0de0b51 commit 3920c7f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 30 deletions.
39 changes: 39 additions & 0 deletions modules/common/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
schema_version: 1
name: common
version: '1.0'
description: Common configuration across OpenJDK images

labels:
# these are BUILDER specific
- name: "io.k8s.description"
value: "Platform for building and running plain Java applications (fat-jar and flat classpath)"
- name: "io.k8s.display-name"
value: "Java Applications"
- name: "io.openshift.tags"
value: "builder,java"
# these are more generic
- name: "maintainer"
value: "Red Hat OpenJDK <[email protected]>"
- name: "usage"
value: &docs "https://jboss-container-images.github.io/openjdk/"
- name: "com.redhat.license_terms"
value: "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
- name: "org.opencontainers.image.documentation"
value: *docs

envs:
- name: PATH
value: $PATH:"/usr/local/s2i"
- name: "LANG"
value: "C.utf8"

# builder specific
ports:
- value: 8080
- value: 8443

help:
add: true

packages:
manager: microdnf
32 changes: 2 additions & 30 deletions ubi10-openjdk-21.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This is an Image descriptor for Cekit

# This is an Image descriptor for <https://cekit.io/>
schema_version: 1

from: "registry.access.redhat.com/ubi10-beta/ubi-minimal:10.0-beta"
Expand All @@ -8,55 +7,28 @@ version: &version "1.21"
description: "Source To Image (S2I) image for Red Hat OpenShift providing OpenJDK 21"

labels:
- name: "io.k8s.description"
value: "Platform for building and running plain Java applications (fat-jar and flat classpath)"
- name: "io.k8s.display-name"
value: "Java Applications"
- name: "io.openshift.tags"
value: "builder,java"
- name: "maintainer"
value: "Red Hat OpenJDK <[email protected]>"
- name: "com.redhat.component"
value: "openjdk-21-ubi10-container"
- name: "usage"
value: &docs "https://jboss-container-images.github.io/openjdk/"
- name: "com.redhat.license_terms"
value: "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
- name: "org.opencontainers.image.documentation"
value: *docs
- name: "name"
value: *name
- name: "version"
value: *version

envs:
- name: PATH
value: $PATH:"/usr/local/s2i"
- name: "JBOSS_IMAGE_NAME"
value: *name
- name: "JBOSS_IMAGE_VERSION"
value: *version
- name: "LANG"
value: "C.utf8"

ports:
- value: 8080
- value: 8443

modules:
repositories:
- path: modules
install:
- name: common
- name: jboss.container.util.RHEL-67389
- name: jboss.container.util.pkg-update
- name: jboss.container.openjdk.jdk
version: "21"
- name: jboss.container.maven
version: "3.8.21"
- name: jboss.container.java.s2i.bash

help:
add: true

packages:
manager: microdnf

0 comments on commit 3920c7f

Please sign in to comment.