66options :
77 package_manager_path : /usr/bin/microdnf
88dependencies :
9+ system : bindep.txt
10+ python_interpreter :
11+ package_system : python3.12
12+ python_path : /usr/bin/python3.12
913 ansible_core :
10- package_pip : ansible-core>=2.15.0rc2,<2. 16
14+ package_pip : ansible-core>=2.16
1115 ansible_runner :
1216 package_pip : ansible-runner
1317 galaxy : requirements.yml
@@ -17,16 +21,14 @@ additional_build_steps:
1721 prepend_base :
1822 - ARG REDHAT_ORG
1923 - ARG REDHAT_ACTIVATION_KEY
20- # FIX 1: Install subscription-manager AND python3-pip
21- - RUN microdnf install -y subscription-manager python3-pip
22- - RUN subscription-manager register --org $REDHAT_ORG --activationkey $REDHAT_ACTIVATION_KEY
23- - RUN $PKGMGR -y remove python3-typing-extensions python3-black python3-jsonschema ansible-lint || true
24- - RUN $PYCMD -m pip install -U pip setuptools
25-
26- # FIX 2: Restore repo enablement so packages can be found
24+ - RUN if [[ ! -z "$REDHAT_ORG" ]] && [[ ! -z "$REDHAT_ACTIVATION_KEY" ]]; then microdnf install -y subscription-manager && subscription-manager register --org $REDHAT_ORG --activationkey $REDHAT_ACTIVATION_KEY; else echo "Skipping Subscribing Build"; fi
25+ # The fix for rpds-py is included here:
26+ - RUN $PKGMGR -y remove python3.12-typing-extensions python3.12-referencing python3.12-jsonschema python3.12-rpds-py python3.12-ansible-compat python3.12-jsonschema-specifications ansible-lint || true
27+ - RUN $PYCMD -m pip install --upgrade pip setuptools
28+
2729 prepend_builder :
28- - ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-4.17 -for-rhel-9-*-rpms"
29-
30+ - ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-4.21 -for-rhel-9-*-rpms"
31+
3032 prepend_galaxy :
3133 - ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_VALIDATED_URL
3234 - ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_VALIDATED_AUTH_URL
@@ -37,12 +39,10 @@ additional_build_steps:
3739 - ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_CERTIFIED_TOKEN
3840 - ARG ANSIBLE_GALAXY_SERVER_UPSTREAM_GALAXY_URL
3941 - ARG ANSIBLE_GALAXY_SERVER_LIST
40-
41- # FIX 3: Restore repo enablement for the final stage
42+
4243 prepend_final :
43- - ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-4.17-for-rhel-9-*-rpms"
44-
45- append_base :
46- - RUN $PYCMD -m pip install -U pip
44+ - ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-4.21-for-rhel-9-*-rpms"
45+
4746 append_final :
48- - RUN subscription-manager unregister
47+ - RUN ln -sf /usr/bin/python3.12 /usr/bin/python3
48+ - RUN if [[ ! -z "$REDHAT_ORG" ]] && [[ ! -z "$REDHAT_ACTIVATION_KEY" ]]; then subscription-manager unregister || true; else echo "Skipping Unregistering Build"; fi
0 commit comments