38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
---
|
|
version: 3
|
|
images:
|
|
base_image:
|
|
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel9:latest
|
|
dependencies:
|
|
galaxy: requirements.yml
|
|
system:
|
|
- python3.11-devel [platform:rpm]
|
|
python:
|
|
- pywinrm>=0.4.3
|
|
python_interpreter:
|
|
python_path: /usr/bin/python3.11
|
|
|
|
additional_build_files:
|
|
- src: ansible.cfg
|
|
dest: configs
|
|
|
|
options:
|
|
package_manager_path: /usr/bin/microdnf
|
|
|
|
additional_build_steps:
|
|
prepend_base:
|
|
- ARG OPENSHIFT_CLIENT_RPM
|
|
- RUN $PYCMD -m pip install --upgrade pip setuptools
|
|
- RUN $PKGMGR -y update && $PKGMGR -y install bash-completion && $PKGMGR clean all
|
|
# microdnf doesn't support URL or local file paths to RPMs, use rpm as a workaround
|
|
- RUN curl -o /tmp/openshift-clients.rpm $OPENSHIFT_CLIENT_RPM && rpm -Uvh /tmp/openshift-clients.rpm && rm -f /tmp/openshift-clients.rpm
|
|
prepend_galaxy:
|
|
- ADD _build/configs/ansible.cfg /etc/ansible/ansible.cfg
|
|
- ARG ANSIBLE_GALAXY_SERVER_CERTIFIED_TOKEN
|
|
- ARG ANSIBLE_GALAXY_SERVER_VALIDATED_TOKEN
|
|
append_final:
|
|
- RUN curl -o /etc/yum.repos.d/hasicorp.repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo &&
|
|
microdnf install -y terraform
|
|
|
|
...
|