diff --git a/rocky-environment.yml b/rocky-environment.yml new file mode 100644 index 0000000..13e7fde --- /dev/null +++ b/rocky-environment.yml @@ -0,0 +1,61 @@ +--- +version: 3 +build_arg_defaults: + ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '--pre' + +#ansible_config: ansible.cfg + +dependencies: + ansible_core: + package_pip: ansible-core>=2.15.0rc2,<2.16 + ansible_runner: + package_pip: ansible-runner + system: bindep.txt + python: requirements.txt + galaxy: requirements.yml + +# options: +# container_init: +# package_pip: dumb-init>=1.2.5 +# entrypoint: '["dumb-init"]' +# cmd: '["csh"]' + #package_manager_path: /usr/bin/microdnf + #relax_password_permissions: false + #skip_ansible_check: true + #workdir: /myworkdir + #user: bob + #tags: + # - ee_development:latest + +images: + base_image: + name: docker.io/rockylinux:9.3 + +additional_build_files: + - src: ansible.cfg + dest: configs +additional_build_steps: + prepend_base: + - RUN /usr/bin/python3 -m ensurepip + - RUN /usr/bin/python3 -m pip install --upgrade pip + # prepend_galaxy: | + # RUN pip3 install --upgrade pip setuptools ansible ansible-runner + prepend_galaxy: + - RUN /usr/bin/python3 -m pip install --upgrade pip cmake + - COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg + prepend_final: | + RUN whoami + RUN cat /etc/os-release + # RUN pip3 install --upgrade pip setuptools ansible ansible-runner + # RUN yum install wget unzip gcc python3-devel -y + append_base: + - RUN $PYCMD -m pip install -U pip + append_final: + # - RUN pip3 install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt + - RUN pip3 install --upgrade azure-identity azure-cli-core paramiko + - COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor + - RUN mkdir -p /var/run/receptor + - RUN git lfs install --system + #- RUN mkdir -p /etc/ansible + #- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg +