Skip to content

Commit 1646499

Browse files
authored
Merge pull request #297 from jmtd/ubi9-fork
UBI9 images (alternative approach)
2 parents 2b5271d + 6406e34 commit 1646499

File tree

113 files changed

+551
-2988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+551
-2988
lines changed

.github/workflows/ubi8-openjdk-11-runtime.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/ubi8-openjdk-17-runtime.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/ubi8-openjdk-8.yml renamed to .github/workflows/ubi9-openjdk-11-runtime.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: OpenJDK 8 S2I Image CI
1+
name: UBI9 OpenJDK 11 Runtime S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.1.1
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
IMAGE: ubi9-openjdk-11-runtime
78
jobs:
89
openjdkci:
910
name: OpenJDK S2I Build and Test
@@ -13,9 +14,7 @@ jobs:
1314
steps:
1415
- uses: actions/checkout@v2
1516
- name: Verify latest UBI image is present
16-
run: |
17-
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18-
docker image ls | grep ubi8
17+
run: docker pull registry.access.redhat.com/ubi9/ubi-minimal:latest
1918
- name: Setup required system packages
2019
run: |
2120
sudo apt-get update
@@ -29,8 +28,7 @@ jobs:
2928
- name: Build
3029
run: |
3130
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32-
cekit -v --descriptor ubi8-openjdk-8.yaml build docker
33-
docker image ls
31+
cekit -v --descriptor ${{ env.IMAGE }}.yaml build docker
3432
- name: install s2i binary
3533
run: |
3634
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
@@ -43,4 +41,4 @@ jobs:
4341
- name: Behave Tests
4442
run: |
4543
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
46-
cekit -v --descriptor ubi8-openjdk-8.yaml test behave
44+
cekit -v --descriptor ${{ env.IMAGE }}.yaml test behave

.github/workflows/ubi8-openjdk-11.yml renamed to .github/workflows/ubi9-openjdk-11.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: OpenJDK 11 S2I Image CI
1+
name: UBI9 OpenJDK 11 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.1.1
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
IMAGE: ubi9-openjdk-11
78
jobs:
89
openjdkci:
910
name: OpenJDK S2I Build and Test
@@ -13,9 +14,7 @@ jobs:
1314
steps:
1415
- uses: actions/checkout@v2
1516
- name: Verify latest UBI image is present
16-
run: |
17-
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18-
docker image ls | grep ubi8
17+
run: docker pull registry.access.redhat.com/ubi9/ubi-minimal:latest
1918
- name: Setup required system packages
2019
run: |
2120
sudo apt-get update
@@ -29,8 +28,7 @@ jobs:
2928
- name: Build
3029
run: |
3130
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32-
cekit -v --descriptor ubi8-openjdk-11.yaml build docker
33-
docker image ls
31+
cekit -v --descriptor ${{ env.IMAGE }}.yaml build docker
3432
- name: install s2i binary
3533
run: |
3634
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
@@ -43,4 +41,4 @@ jobs:
4341
- name: Behave Tests
4442
run: |
4543
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
46-
cekit -v --descriptor ubi8-openjdk-11.yaml test behave
44+
cekit -v --descriptor ${{ env.IMAGE }}.yaml test behave

.github/workflows/ubi8-openjdk-17.yml renamed to .github/workflows/ubi9-openjdk-17-runtime.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: OpenJDK 17 S2I Image CI
1+
name: UBI9 OpenJDK 17 Runtime S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.6.0
5+
CEKIT_VERSION: 4.1.1
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
IMAGE: ubi9-openjdk-17-runtime
78
jobs:
89
openjdkci:
910
name: OpenJDK S2I Build and Test
@@ -13,9 +14,7 @@ jobs:
1314
steps:
1415
- uses: actions/checkout@v2
1516
- name: Verify latest UBI image is present
16-
run: |
17-
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18-
docker image ls | grep ubi8
17+
run: docker pull registry.access.redhat.com/ubi9/ubi-minimal:latest
1918
- name: Setup required system packages
2019
run: |
2120
sudo apt-get update
@@ -29,8 +28,7 @@ jobs:
2928
- name: Build
3029
run: |
3130
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32-
cekit -v --descriptor ubi8-openjdk-17.yaml build docker
33-
docker image ls
31+
cekit -v --descriptor ${{ env.IMAGE }}.yaml build docker
3432
- name: install s2i binary
3533
run: |
3634
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
@@ -43,4 +41,4 @@ jobs:
4341
- name: Behave Tests
4442
run: |
4543
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
46-
cekit -v --descriptor ubi8-openjdk-17.yaml test behave
44+
cekit -v --descriptor ${{ env.IMAGE }}.yaml test behave
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: OpenJDK 8 Runtime Image CI
1+
name: UBI9 OpenJDK 17 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
CEKIT_VERSION: 3.11.0
5+
CEKIT_VERSION: 4.1.1
66
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
IMAGE: ubi9-openjdk-17
78
jobs:
89
openjdkci:
9-
name: OpenJDK Runtime Build and Test
10+
name: OpenJDK S2I Build and Test
1011
runs-on: ubuntu-18.04
1112
strategy:
1213
fail-fast: false
1314
steps:
1415
- uses: actions/checkout@v2
1516
- name: Verify latest UBI image is present
16-
run: |
17-
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18-
docker image ls | grep ubi8
17+
run: docker pull registry.access.redhat.com/ubi9/ubi-minimal:latest
1918
- name: Setup required system packages
2019
run: |
2120
sudo apt-get update
@@ -29,11 +28,7 @@ jobs:
2928
- name: Build
3029
run: |
3130
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32-
cekit -v --descriptor ubi8-openjdk-8-runtime.yaml build docker
33-
docker image ls
34-
35-
# even though we don't run any S2I tests for the runtime images, the test suite
36-
# will fail to start if the s2i binary is not present.
31+
cekit -v --descriptor ${{ env.IMAGE }}.yaml build docker
3732
- name: install s2i binary
3833
run: |
3934
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
@@ -43,8 +38,7 @@ jobs:
4338
sudo mv s2i /usr/bin
4439
which s2i
4540
s2i version
46-
4741
- name: Behave Tests
4842
run: |
4943
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
50-
cekit -v --descriptor ubi8-openjdk-8-runtime.yaml test behave
44+
cekit -v --descriptor ${{ env.IMAGE }}.yaml test behave

README.adoc

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,44 @@ These are the OpenJDK Source to Image (S2I) images for Red Hat OpenShift.
66

77
### From https://access.redhat.com/containers/[Red Hat Container Catalog]
88

9-
The UBI8-based OpenJDK images are available under the terms of the
10-
link:https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI[UBI EULA]:
9+
The UBI9-based OpenJDK images are available under the terms of the
10+
link:https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI[UBI EULA].
1111

12-
* link:https://catalog.redhat.com/software/containers/ubi8/openjdk-8/5dd6a48dbed8bd164a09589a[ubi8/openjdk-8]
13-
* link:https://catalog.redhat.com/software/containers/ubi8/openjdk-11/5dd6a4b45a13461646f677f4[ubi8/openjdk-11]
12+
* (GA catalog URIs go here)
1413

15-
The RHEL7-based OpenJDK images require a Red Hat subscription:
16-
17-
* link:https://catalog.redhat.com/software/containers/redhat-openjdk-18/openjdk18-openshift/58ada5701fbe981673cd6b10[redhat-openjdk-18/openjdk18-openshift]
18-
* link:https://catalog.redhat.com/software/containers/openjdk/openjdk-11-rhel7/5bf57185dd19c775cddc4ce5[openjdk/openjdk-11-rhel7]
14+
Older RHEL8 and RHEL7-based image sources are in the `develop` branch.
1915

2016
## How to build the images
2117

2218
You need to https://cekit.readthedocs.io/en/develop/installation.html[install Cekit] to build these images.
2319

24-
These sources are prepared and tested for Cekit 3.6.0.
25-
26-
For building within Red Hat, the instructions vary slightly, see link:redhat/README.adoc[].
27-
28-
## Red Hat Universal Base Image 8 versions
29-
30-
### Red Hat Universal Base Image 8 with OpenJDK 8
20+
These sources are prepared and tested for Cekit 4.1.1.
3121

32-
cekit --descriptor ubi8-openjdk-8.yaml build podman
22+
## Red Hat Universal Base Image 9 versions
3323

34-
This will produce an image named `ubi8/openjdk-8`.
24+
### Red Hat Universal Base Image 9 with OpenJDK 11
3525

36-
### Red Hat Universal Base Image 8 with OpenJDK 11
26+
cekit --descriptor ubi9-openjdk-11.yaml build podman
3727

38-
cekit --descriptor ubi8-openjdk-11.yaml build podman
28+
This will produce an image named `ubi9/openjdk-11`.
3929

40-
This will produce an image named `ubi8/openjdk-11`.
30+
### Red Hat Universal Base Image 9 with OpenJDK 17
4131

42-
## Red Hat Enterprise Linux 7 Image versions
32+
cekit --descriptor ubi9-openjdk-17.yaml build podman
4333

44-
You will need an active Red Hat subscription on the host you use to
45-
build these images.
34+
This will produce an image named `ubi9/openjdk-17`.
4635

47-
### RHEL 7 OpenJDK 8
36+
### Red Hat Universal Base Image 9 with OpenJDK 11 - Runtime
4837

49-
cekit --descriptor openjdk18-openshift.yaml build podman
38+
cekit --descriptor ubi9-openjdk-11-runtime.yaml build podman
5039

51-
This will produce an image named `redhat-openjdk-8/openjdk18-openshift`.
40+
This will produce an image named `ubi9/openjdk-11-runtime`.
5241

53-
### RHEL 7 OpenJDK 11
42+
### Red Hat Universal Base Image 9 with OpenJDK 17 - Runtime
5443

55-
cekit --descriptor openjdk-11-rhel7.yaml build podman
44+
cekit --descriptor ubi9-openjdk-17-runtime.yaml build podman
5645

57-
This will produce an image named `openjdk/openjdk-11-rhel7`.
46+
This will produce an image named `ubi9/openjdk-17-runtime`.
5847

5948
## Contributing
6049

@@ -63,5 +52,5 @@ Origin (DCO) is required. See link:CONTRIBUTING.md[].
6352

6453
## License
6554

66-
© 2020 Red Hat, Inc. Distributed under the terms of the Apache License,
55+
© 2022 Red Hat, Inc. Distributed under the terms of the Apache License,
6756
Version 2.0. See link:LICENSE[LICENSE] file.

0 commit comments

Comments
 (0)