execution-environment.yml
Rama main · réplica de lectura del repositorio original.
# the public [lfops_ee containers](https://github.com/Linuxfabrik/lfops/pkgs/container/lfops_ee) are built
# via [github actions](https://github.com/Linuxfabrik/lfops/actions/workflows/lf-build.yml).
# for testing / troubleshooting, the container can be build with locally (takes around 3 mins):
# ```bash
# ansible-galaxy collection build
# cp --verbose linuxfabrik-lfops-*.tar.gz linuxfabrik-lfops.tar.gz
# ansible-builder build --tag lfops_ee:local -vvv
# ```
# The image carries its version in LFOPS_EE_VERSION (shown by the dashboard callback);
# set it with `--build-arg LFOPS_EE_VERSION=<version>`, else it is 'local'.
# https://ansible.readthedocs.io/projects/builder/en/stable/definition/#builder-ee-definition
version: 3
images:
base_image:
name: 'quay.io/rockylinux/rockylinux:9'
dependencies:
ansible_runner:
package_pip: 'ansible-runner'
ansible_core:
package_pip: 'ansible-core>=2.16.0,<2.17.0' # make sure the ansible version works with rhel8
galaxy: 'execution-environment-requirements.yml'
python:
- 'ansible-lint'
- 'jmespath' # required for community.general.json_query
- 'mitogen'
- 'netaddr' # required for ansible.utils.ipaddr
- 'openstacksdk' # required for openstack.cloud
- 'passlib' # required for ansible.builtin.password_hash filter
- 'python-dateutil' # required for hetzner.hcloud
- 'pywinrm'
- 'requests' # required for hetzner.hcloud
python_interpreter:
package_system: 'python3.11'
python_path: '/usr/bin/python3.11'
system:
- 'git-core' # required for ansible.builtin.git module
- 'rsync' # required for ansible.posix.synchronize module
- 'sshpass' # required for ssh connections with passwords, eg via `--ask-pass`
additional_build_files:
- src: 'linuxfabrik-lfops.tar.gz'
dest: '.'
additional_build_steps:
append_final:
- 'ARG LFOPS_EE_VERSION=local'
- 'ENV LFOPS_EE_VERSION=$LFOPS_EE_VERSION'
- 'LABEL org.opencontainers.image.version=$LFOPS_EE_VERSION'
- 'RUN mkdir -p /opt/mitogen && ln -s /usr/local/lib/python3.11/site-packages/mitogen /opt/mitogen/mitogen && ln -s /usr/local/lib/python3.11/site-packages/ansible_mitogen /opt/mitogen/ansible_mitogen'