-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecution-environment.yml
More file actions
50 lines (45 loc) · 2.16 KB
/
Copy pathexecution-environment.yml
File metadata and controls
50 lines (45 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
version: 3
images:
base_image:
name: registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel9:latest
options:
package_manager_path: /usr/bin/microdnf
dependencies:
system: bindep.txt
python_interpreter:
package_system: python3.12
python_path: /usr/bin/python3.12
ansible_core:
package_pip: ansible-core>=2.16
ansible_runner:
package_pip: ansible-runner
galaxy: requirements.yml
python: requirements.txt
additional_build_steps:
prepend_base:
- ARG REDHAT_ORG
- ARG REDHAT_ACTIVATION_KEY
- 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
# The fix for rpds-py is included here:
- 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
- RUN $PYCMD -m pip install --upgrade pip setuptools
prepend_builder:
- ARG OCP_VERSION=4.21
- ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-${OCP_VERSION}-for-rhel-9-*-rpms"
prepend_galaxy:
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_VALIDATED_URL
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_VALIDATED_AUTH_URL
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_VALIDATED_TOKEN
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_TOKEN
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_CERTIFIED_URL
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_CERTIFIED_AUTH_URL
- ARG ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_CERTIFIED_TOKEN
- ARG ANSIBLE_GALAXY_SERVER_UPSTREAM_GALAXY_URL
- ARG ANSIBLE_GALAXY_SERVER_LIST
prepend_final:
- ARG OCP_VERSION=4.21
- ENV PKGMGR_OPTS "--nodocs --setopt install_weak_deps=0 --enablerepo=rhocp-${OCP_VERSION}-for-rhel-9-*-rpms"
append_final:
- RUN ln -sf /usr/bin/python3.12 /usr/bin/python3
- RUN if [[ ! -z "$REDHAT_ORG" ]] && [[ ! -z "$REDHAT_ACTIVATION_KEY" ]]; then subscription-manager unregister || true; else echo "Skipping Unregistering Build"; fi