1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-03 23:01:48 +00:00
ansible-podman-collections/contrib
Sergey 73b7bb1d3e
Update docs and script (#973)
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2025-08-25 11:45:29 +03:00
..
ansible-lint.sh Improve docs and guides (#958) 2025-08-03 14:22:57 +03:00
ansible-unit.sh Improve docs and guides (#958) 2025-08-03 14:22:57 +03:00
build.py Run black -l 120 on all Python files to unify the style (#939) 2025-06-15 18:25:48 +03:00
build_docs.sh Update docs and script (#973) 2025-08-25 11:45:29 +03:00
build_rpm.sh Add RPM building scripts (#255) 2021-05-13 14:09:16 +03:00
publish-requirements.txt Fix publish job (#89) 2020-07-22 13:06:07 +03:00
publish.sh Fix publish job (#89) 2020-07-22 13:06:07 +03:00
README.md Add README to contribs for testing and CI examples 2020-05-10 20:34:22 +03:00

Various recipes for running tests and CI

For CentOS 7

echo "centos:100000:65536" | sudo tee -a /etc/subuid
echo "centos:100000:65536" | sudo tee -a /etc/subgid
echo 1000 | sudo tee /proc/sys/user/max_user_namespaces

prepare VMs

ANSIBLE_SSH_RETRIES=3 ansible-playbook ci/playbooks/pre.yml -vv -i $INVENTORY -e ansible_venv=/tmp/test-ansible-venv -e ansible_venv_site_packages=true -e clean_venv=true

build from your branch

ANSIBLE_SSH_RETRIES=3 ansible-playbook ci/playbooks/build.yml -vv -i $INVENTORY -e ansible_venv=/tmp/test-ansible-venv -e repo_url=https://github.com/sshnaidm/ansible-podman-collections.git -e pr_branch=podmanci

build locally

ansible-playbook -vv -i localhost, -c local  ci/playbooks/build.yml -e repo_dir=/tmp/temp_collection_home -e repo_url=~/ansible-podman-collections/ -e ansible_venv=~/test-ansible-venv/

build locally with bash

rm -rf /tmp/just_new_collection
~/.local/bin/ansible-galaxy collection build --output-path /tmp/just_new_collection --force
~/.local/bin/ansible-galaxy collection install -vvv --force /tmp/just_new_collection/*.tar.gz
# for root
#sudo ~/.local/bin/ansible-galaxy collection install -vvv --force /tmp/just_new_collection/*.tar.gz

build remotely from PR

ANSIBLE_SSH_RETRIES=3 ansible-playbook ci/playbooks/build.yml -vv -i $INVENTORY -e ansible_venv=/tmp/test-ansible-venv -e pr=19

run connection tests on remote VMs

ANSIBLE_SSH_RETRIES=3 ansible-playbook ci/playbooks/connection_test.yml -vv -i $INVENTORY -e ansible_venv=/tmp/test-ansible-venv

run example podman_container test on remote VMs

ANSIBLE_SSH_RETRIES=3 ansible-playbook ci/playbooks/containers_test.yml -vv -i $INVENTORY -e ansible_venv=/tmp/test-ansible-venv -e test=podman_container

run test of local collection on remote VMs

ANSIBLE_SSH_RETRIES=3 ANSIBLE_ROLES_PATH=tests/integration/targets ansible-playbook ci/playbooks/containers/podman_container.yml -vv -i $INVENTORY