Skip to content

Add new imagestreams for RHEL10 and RHEL9.6. #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions 7.3/test/__init__.py
1 change: 1 addition & 0 deletions 7.3/test/constants.py
1 change: 1 addition & 0 deletions 7.4/test/__init__.py
1 change: 1 addition & 0 deletions 7.4/test/constants.py
1 change: 1 addition & 0 deletions 8.0/test/__init__.py
1 change: 1 addition & 0 deletions 8.0/test/constants.py
1 change: 1 addition & 0 deletions 8.1/test/__init__.py
1 change: 1 addition & 0 deletions 8.1/test/constants.py
1 change: 1 addition & 0 deletions 8.2/test/__init__.py
1 change: 1 addition & 0 deletions 8.2/test/constants.py
1 change: 1 addition & 0 deletions 8.3/test/__init__.py
1 change: 1 addition & 0 deletions 8.3/test/constants.py
21 changes: 15 additions & 6 deletions imagestreams/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,38 @@
https://github.com/sclorg/s2i-php-container/blob/master/APP_VERSION/README.md.
imagestream_files:
- filename: php-centos.json
latest: "8.0-ubi8"
latest: "8.3-ubi9"
distros:
- name: UBI 8
app_versions: ["7.4", "8.0", "8.2"]

- name: UBI 9
app_versions: ["8.0", "8.1", "8.2"]
app_versions: ["8.0", "8.1", "8.2", "8.3"]

- name: UBI 10
app_versions: ["8.3"]

- filename: php-rhel.json
latest: "8.0-ubi8"
latest: "8.3-ubi9"
distros:
- name: UBI 8
app_versions: ["7.4", "8.0", "8.2"]

- name: UBI 9
app_versions: ["8.0", "8.1", "8.2"]
app_versions: ["8.0", "8.1", "8.2", "8.3"]

- name: UBI 10
app_versions: ["8.3"]

- filename: php-rhel-aarch64.json
latest: "8.0-ubi8"
latest: "8.3-ubi9"
distros:
- name: UBI 8
app_versions: ["7.4", "8.0", "8.2"]

- name: UBI 9
app_versions: ["8.0", "8.1", "8.2"]
app_versions: ["8.0", "8.1", "8.2", "8.3"]

- name: UBI 10
app_versions: ["8.3"]
...
46 changes: 42 additions & 4 deletions imagestreams/php-centos.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,58 @@
"type": "Local"
}
},
{
"name": "8.3-ubi9",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi9/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "8.3-ubi10",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 10)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 10. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/ubi10/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "PHP 8.0 (Latest)",
"openshift.io/display-name": "PHP 8.3 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.0 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.0/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.0",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "8.0-ubi8"
"name": "8.3-ubi9"
},
"referencePolicy": {
"type": "Local"
Expand Down
46 changes: 42 additions & 4 deletions imagestreams/php-rhel-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,58 @@
"type": "Local"
}
},
{
"name": "8.3-ubi9",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi9/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "8.3-ubi10",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 10)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 10. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi10/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "PHP 8.0 (Latest)",
"openshift.io/display-name": "PHP 8.3 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.0 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.0/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.0",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "8.0-ubi8"
"name": "8.3-ubi9"
},
"referencePolicy": {
"type": "Local"
Expand Down
46 changes: 42 additions & 4 deletions imagestreams/php-rhel.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,58 @@
"type": "Local"
}
},
{
"name": "8.3-ubi9",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 9)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi9/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "8.3-ubi10",
"annotations": {
"openshift.io/display-name": "PHP 8.3 (UBI 10)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.3 applications on UBI 10. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi10/php-83:latest"
},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "latest",
"annotations": {
"openshift.io/display-name": "PHP 8.0 (Latest)",
"openshift.io/display-name": "PHP 8.3 (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"description": "Build and run PHP 8.0 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.0/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"description": "Build and run PHP 8.3 applications on UBI 9. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-php-container/blob/master/8.3/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version available on OpenShift, including major version updates.\n",
"iconClass": "icon-php",
"tags": "builder,php",
"version": "8.0",
"version": "8.3",
"sampleRepo": "https://github.com/sclorg/cakephp-ex.git"
},
"from": {
"kind": "ImageStreamTag",
"name": "8.0-ubi8"
"name": "8.3-ubi9"
},
"referencePolicy": {
"type": "Local"
Expand Down
Empty file added test/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions test/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TAGS = {
"rhel8": "-ubi8",
"rhel9": "-ubi9",
"rhel10": "-ubi10",
}
8 changes: 0 additions & 8 deletions test/test-lib-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ function test_php_integration() {

# Check the imagestream
function test_php_imagestream() {
if [ "$OS" == "rhel10" ]; then
echo "Imagestreams are not released yet for RHEL10. Let's skip this test."
return
fi
ct_os_test_image_stream_s2i "${THISDIR}/imagestreams/php-${OS%[0-9]*}.json" "${IMAGE_NAME}" \
"https://github.com/sclorg/s2i-php-container.git" \
test/test-app \
Expand All @@ -34,10 +30,6 @@ function test_php_imagestream() {
function test_php_template() {
local supported_use_case
local check_msg
if [ "$OS" == "rhel10" ]; then
echo "Imagestreams are not released yet for RHEL10. Let's skip this test."
return
fi
if [ "${VERSION}" == "7.4" ] || [ "${VERSION}" == "8.0" ]; then
supported_use_case="True"
BRANCH_TO_TEST="4.X"
Expand Down
12 changes: 3 additions & 9 deletions test/test_php_deploy_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from container_ci_suite.openshift import OpenShiftAPI
from container_ci_suite.utils import check_variables

from constants import TAGS

if not check_variables():
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
sys.exit(1)
Expand All @@ -24,11 +26,7 @@
branch_to_test = "master"
check_msg = "Welcome to your CakePHP application on OpenShift"

TAGS = {
"rhel8": "-ubi8",
"rhel9": "-ubi9"
}
TAG = TAGS.get(OS, None)
TAG = TAGS.get(OS)

new_version = VERSION.replace(".", "")

Expand All @@ -53,10 +51,6 @@ def teardown_method(self):
]
)
def test_php_template_inside_cluster(self, template):
if OS == "rhel10":
pytest.skip("Do NOT test on RHEL10 yet.")
if VERSION == "8.3":
pytest.skip("Do NOT test on version 8.3 yet.")
self.oc_api.import_is("imagestreams/php-rhel.json", "", skip_check=True)
service_name = f"php-{new_version}-testing"
template_url = self.oc_api.get_raw_url_for_json(
Expand Down
4 changes: 0 additions & 4 deletions test/test_php_s2i_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ def teardown_method(self):
self.oc_api.delete_project()

def test_php_template_inside_cluster(self):
if OS == "rhel10":
pytest.skip("Do NOT test on RHEL10 yet.")
if VERSION == "8.3":
pytest.skip("Do NOT test on version 8.3 yet.")
service_name = f"php-{SHORT_VERSION}-testing"
assert self.oc_api.deploy_imagestream_s2i(
imagestream_file="imagestreams/php-rhel.json",
Expand Down
Loading