Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
dc3b6a4
[OPENJDK-2519] Add tzdata module to reinstall tzdata
jmtd Dec 11, 2023
249397b
Merge pull request #401 from Josh-Matsuoka/ubi9-jlink
jmtd Dec 13, 2023
ae652d8
Revert "Merge pull request #401 from Josh-Matsuoka/ubi9-jlink"
jmtd Dec 13, 2023
98c1f22
Merge pull request #424 from jmtd/XXX--OPENJDK-tzdata-reinstall
jmtd Dec 18, 2023
0e3bdc2
Move behave tests to relevant modules
jhuttana Dec 21, 2023
a7f825d
[OPENJDK-2595] fix docs labels for JDK21
jmtd Jan 5, 2024
d693b66
Merge pull request #430 from jmtd/OPENJDK-2595-jdk21-usage
jmtd Jan 8, 2024
45ab242
Merge pull request #429 from jhuttana/re-org-tests
jmtd Jan 9, 2024
34bfc9c
Create a dummy module.yaml to move openjdk.feature behave test to mod…
jhuttana Jan 17, 2024
3b28735
Address review comments
jhuttana Jan 31, 2024
ac8c331
Merge pull request #436 from jhuttana/re-org-tests1
jmtd Feb 13, 2024
52de04a
[OPENJDK-2519] tzdata module depend upon pkg-update
jmtd Feb 13, 2024
e7b5ef7
Merge pull request #445 from jmtd/OPENJDK-2519-tzdata-reorder-dependency
jmtd Feb 13, 2024
d44efd4
Delete OPENJDK-1549 as it is already moved to new test application so…
jhuttana Feb 16, 2024
60ca966
Merge pull request #447 from jhuttana/re-org-tests1
jmtd Feb 19, 2024
5d8a65f
Possible fix for CSB-3783
ammachado Mar 5, 2024
b96c152
Split the tests inside openjdk_s2i.feature to couple them with approp…
jhuttana Mar 15, 2024
41f8baf
Split the tests inside tests/features/java/runtime.feature to couple …
jhuttana Mar 15, 2024
74a6ebc
Merge pull request #464 from jhuttana/ubi9-runtime-feature
jmtd Mar 18, 2024
1a2d51e
Address review comments
jhuttana Mar 19, 2024
d9035d2
Merge pull request #462 from jhuttana/ubi9-openjdk-s2i-feature
jmtd Mar 20, 2024
7bf1934
[OPENJDK-2850] Test binary-s2i on a non-owned directory
jmtd Apr 2, 2024
309d1c9
[OPENJDK-2850] assemble: binary: Don't set times on directories
jmtd Mar 27, 2024
2a0c7b1
Tweak run-java.sh script for some env varibales and fold run-env.sh i…
jhuttana Sep 14, 2023
e84cc6d
Address review comments
jhuttana Sep 14, 2023
b3218d0
Use substring expansion to set the value for JBOSS_CONTAINER_UTIL_LOG…
jhuttana Sep 14, 2023
bef862d
Address review comments for indentation and removing unwanted comment…
jhuttana Sep 20, 2023
ecad3bf
Merge pull request #478 from jmtd/clean-up-run-script
jmtd Apr 10, 2024
a0824c6
Rename the test suitably The rationale is, these are not openshift te…
jhuttana Apr 10, 2024
b7ac43b
Merge pull request #479 from jhuttana/rename_test
jmtd Apr 15, 2024
b2201a5
Merge pull request #470 from jmtd/OPENJDK-2824-binary-copy-dir-perms
jmtd Apr 15, 2024
21f47a7
[OPENJDK-2990] Remove Arquillian test sources
jmtd Apr 25, 2024
6bf56b7
docs: consistent AsciiDoc headers, ToC
jmtd Apr 26, 2024
9e30f2e
docs: re-order sections; ubi first, then versions
jmtd Apr 26, 2024
398878d
[OPENJDK-2833] hook masked_args into get_java_options for logging
jmtd May 2, 2024
195a93c
[OPENJDK-2833] Behave test for masking passwords in logs
jmtd May 2, 2024
1959b55
Merge pull request #485 from jmtd/rm-arq
jmtd May 2, 2024
af88a09
Merge pull request #487 from jmtd/docs-toc-reorder-sections
jmtd May 2, 2024
53ff841
Merge pull request #466 from ammachado/CSB-3783
jmtd May 2, 2024
b9f512d
Bump versions for next release.
jmtd May 22, 2024
65c49a0
[OPENJDK-3033] drop singleton-jdk from openjdk-21
jmtd May 22, 2024
b9b4473
[OPENJDK-3033] Introduce and use maven-openjdk21 module
jmtd May 30, 2024
db72228
Merge pull request #499 from jmtd/OPENJDK-3033-singleton-ubi9-m21
jmtd May 31, 2024
0052eca
Correct the link to the Cekit instllation docs
starksm64 Jun 10, 2024
d14ec7f
Merge pull request #501 from starksm64/patch-1
jmtd Jun 11, 2024
20e1fd0
[OPENJDK-3351] Pin base image on :9.4 tag
jmtd Oct 15, 2024
bcf447c
Merge pull request #504 from jmtd/ubi9-9.4
jmtd Oct 15, 2024
0d7011c
Bump version for next release
jmtd Oct 18, 2024
d708f1b
Merge pull request #505 from jmtd/ubi9-bump-version
jmtd Oct 22, 2024
1decd34
[OPENJDK-3390] Update GitHub Pages URI
jmtd Oct 24, 2024
3812d7a
Merge pull request #510 from jmtd/OPENJDK-3391-new-uri
jmtd Nov 1, 2024
dc28ad7
[OPENJDK-3410] update self-reference in GitHub pages for new URI
jmtd Nov 1, 2024
8390fbd
Merge pull request #511 from jmtd/update-gh-pages-selfref-uri
jmtd Nov 4, 2024
cba1bd2
[OPENJDK-3418] Bump GH Pages Actions to recent versions
jmtd Nov 6, 2024
179ce26
Merge pull request #513 from jmtd/gha-pages-versions
jmtd Nov 6, 2024
374c13b
[OPENJDK-3430] alter FROM line for redhat builds
jmtd Nov 12, 2024
018c324
[OPENJDK-3414] Update refs to openjdk-test-applications
jmtd Nov 18, 2024
f95fb11
Merge pull request #520 from jmtd/OPENJDK-3414-refs-openjdk-test-appl…
jmtd Nov 18, 2024
e8fcbbc
Merge pull request #519 from jmtd/OPENJDK-3430-update-ubi9-FROM
jmtd Nov 18, 2024
8511432
Bump JDK11 container versions
jmtd Nov 19, 2024
d1fab0e
Merge pull request #522 from jmtd/more-bump-versions
jmtd Nov 19, 2024
4cfe4ab
[OPENJDK-3450] Stop using fork of behave-test-steps
jmtd Nov 21, 2024
6a5b5f0
Ensure custom s2i script is run in test
jmtd Nov 21, 2024
bb16fe2
Merge pull request #524 from jmtd/OPENJDK-3450-behave-fork
jmtd Nov 26, 2024
778f62f
Merge pull request #526 from jmtd/OPENJDK-2850-test-followup
jmtd Nov 28, 2024
716c411
[OPENJDK-2805] Symlink /usr/libexec/s2i
jmtd Dec 11, 2024
46e6f82
Merge pull request #529 from jmtd/OPENJDK-2805-s2i-scripts-path-ubi9
jmtd Jan 8, 2025
4e330bc
Update cekit/actions-setup-cekit to v1.1.7
jmtd Jan 8, 2025
0b60c9c
Merge pull request #531 from jmtd/bump-actions
jmtd Jan 9, 2025
c0e1829
[OPENJDK-3536] temporarily disable flaky test
jmtd Jan 8, 2025
5f47967
Merge pull request #530 from jmtd/OPENJDK-3536-temp-disable-test
jmtd Jan 9, 2025
38d9c00
[OPENJDK-3597] test for MAVEN_SETTINGS_XML
jmtd Jan 24, 2025
a922813
Merge pull request #539 from jmtd/OPENJDK-3597-enforce-profile-active
jmtd Jan 27, 2025
d281df9
[OPENJDK-3637] clean up correct hsperfdata path
jmtd Feb 4, 2025
7b635be
Merge pull request #542 from jmtd/3637-hsperfdata
jmtd Feb 17, 2025
3af343e
Merge remote-tracking branch 'origin/ubi9' into 3591-merge-back-jlink
jmtd Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/gendocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
./gendocs.sh

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
18 changes: 2 additions & 16 deletions .github/workflows/image-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: docker pull registry.access.redhat.com/ubi9/ubi-minimal:latest

- name: Install CEKit
uses: cekit/[email protected].5
uses: cekit/[email protected].7

- name: Build
run: |
Expand All @@ -45,18 +45,4 @@ jobs:
- name: Behave Tests
run: |
echo /home/runner/work/_temp/openshift-bin >> $GITHUB_PATH
cekit -v --descriptor ${{ inputs.image }}.yaml test --image localimage behave --steps-url https://github.com/jmtd/behave-test-steps

- if: github.event_name == 'push'
name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- if: github.event_name == 'push'
name: Tag and push container image
run: |
docker tag localimage ${{ env.IMAGE_URI }}
docker push ${{ env.IMAGE_URI }}
cekit -v --descriptor ${{ inputs.image }}.yaml test behave
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ link:https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI[UBI
link:https://access.redhat.com/documentation/en-us/openjdk/17[Red Hat provide
Product documentation for customers]. Tables of environment variables used for
image configuration are published to
<https://jboss-container-images.github.io/openjdk/>. These tables are automatically
<https://rh-openjdk.github.io/redhat-openjdk-containers/>. These tables are automatically
updated for every tagged release, and every commit to the development branches.

Older RHEL7 and RHEL8-based image sources are in the `rhel7` and `ubi8` branches respectively.

## How to build the images

You need to https://cekit.readthedocs.io/en/develop/installation.html[install Cekit] to build these images.
You need to https://docs.cekit.io/en/latest/handbook/installation/index.html[install Cekit] to build these images.

These sources are prepared and tested for Cekit 4.1.1.

Expand Down
5 changes: 3 additions & 2 deletions docs/README.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Red Hat UBI OpenJDK container images
= Red Hat UBI OpenJDK container images
:toc: right

This is auto-generated documentation for the
link:https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image[Red
Hat Universal Base Image] (UBI) OpenJDK container images.

* link:https://github.com/jboss-container-images/openjdk[container image source repository]
* link:https://rh-openjdk.github.io/redhat-openjdk-containers/[container image source repository]

Container images are available from the
link:https://catalog.redhat.com/software/containers/explore[Red Hat Ecosystem
Expand Down
22 changes: 10 additions & 12 deletions gendocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,16 @@ workdir="$(mktemp -td gendocs.XXXXXX)"
cp ./gendocs.py "$workdir/gendocs.py"
cp ./docs/README.adoc "$workdir/README.adoc"

# documentation for development branches
addToIndex "\n== Development branches ==\n"
for branch in ubi8 ubi9; do
addToIndex "\n=== $branch ===\n"
handleRef "$branch" "$branch"
done

# documentation for tagged releases
addToIndex "\n== Released images =="
for tag in $(git tag -l 'ubi?-openjdk-containers*' | sort -r); do
addToIndex "\n=== $tag ===\n"
handleRef "$tag"
for ubi in ubi9 ubi8; do
UBI=${ubi^^}
addToIndex "\n== $UBI\n"
addToIndex "\n=== development\n"
handleRef "$ubi"
for tag in $(git tag -l "${ubi}-openjdk-containers*" | sort -r); do
version=${tag/${ubi}-openjdk-containers-/}
addToIndex "\n=== $version\n"
handleRef "$tag"
done
done

asciidoctor "$workdir/README.adoc" -o docs/index.html
1 change: 1 addition & 0 deletions modules/jdk/11/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jdk/17/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jdk/21/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jdk/8/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
5 changes: 5 additions & 0 deletions modules/jdk/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
schema_version: 1

name: "jboss.container.openjdk"
description: "A dummy descriptor to couple tests with jdk modules"
version: "0"
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,10 @@ Feature: Miscellaneous OpenJDK-related unit tests
| arg | value |
| command | tar |
Then available container log should not contain command not found

@ubi9
Scenario: Ensure tzdata RPM is properly installed (OPENJDK-2519)
When container is started with args
| arg | value |
| command | rpm -V tzdata |
Then available container log should not contain missing
1 change: 1 addition & 0 deletions modules/jre/11/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jre/17/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jre/21/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
1 change: 1 addition & 0 deletions modules/jre/8/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages:
modules:
install:
- name: jboss.container.user
- name: jboss.container.openjdk

execute:
- script: configure.sh
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ Feature: OPENJDK-559 JVM Memory tests
@ubi9/openjdk-17
@openjdk-tech-preview/openjdk-21-jlink-rhel9
Scenario: Ensure Maven doesn't use MaxRAMPercentage=80
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from spring-boot-sample-simple
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from spring-boot-sample-simple
Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
@openjdk-tech-preview/openjdk-21-jlink-rhel9
Feature: Openshift OpenJDK Runtime tests

Scenario: Ensure JAVA_ARGS is passed through, diagnostic options work correctly, JVM_ARGS not present in run script, OPENJDK-474 JAVA_ARGS not repeated
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
| variable | value |
| JAVA_ARGS | unique |
| JAVA_DIAGNOSTICS | true |
Then container log should contain /deployments/undertow-servlet.jar unique
And container log should contain -XX:NativeMemoryTracking=summary
And file /usr/local/s2i/run should not contain JVM_ARGS
And container log should not contain unique unique

@ubi9
Scenario: Check JAVA_OPTS overrides defaults
Given container is started with env
Expand Down Expand Up @@ -62,7 +52,8 @@ Feature: Openshift OpenJDK Runtime tests
| JAVA_APP_DIR | . |
Then available container log should contain INFO running in /home/default

@ubi9
# temporarily disabled, see https://issues.redhat.com/browse/OPENJDK-3536
@ignore
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2034)
Given container is started with env
| variable | value |
Expand All @@ -71,7 +62,7 @@ Feature: Openshift OpenJDK Runtime tests

# Builder images only
Scenario: Ensure JAVA_APP_DIR and S2I work together (OPENJDK-2034)
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications.git from undertow-servlet
| variable | value |
| JAVA_APP_DIR | /home/default |
| S2I_TARGET_DEPLOYMENTS_DIR | /home/default |
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function maven_s2i_build() {
s2i_core_cleanup

# Remove java tmp perf data dir owned by 185
rm -rf /tmp/hsperfdata_jboss
rm -rf "/tmp/hsperfdata_${USER}"
}

# perform a maven build, i.e. mvn ...
Expand Down
Loading
Loading