From a183ca1e0606dfbfbef9ed859d1ed8696ce47e75 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Sat, 22 Jun 2024 15:19:48 -0300 Subject: [PATCH] extra commits to run container. --- tests/azure/templates/playbook_fast.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/azure/templates/playbook_fast.yml b/tests/azure/templates/playbook_fast.yml index f628972c0b..46efca277f 100644 --- a/tests/azure/templates/playbook_fast.yml +++ b/tests/azure/templates/playbook_fast.yml @@ -50,14 +50,18 @@ jobs: cp -a plugins/modules/* ~/.ansible/library cp -a plugins/module_utils/* ~/.ansible/module_utils docker pull -q quay.io/ansible-freeipa/upstream-tests:${{ parameters.scenario }} - docker create \ + podman create \ --hostname ${HOSTNAME} \ --memory 3g \ --memory-swap -1 \ --add-host ${HOSTNAME}:127.0.0.1 \ + --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \ + --tmpfs /run \ + --tmpfs /tmp \ + --privileged \ --name ${{ parameters.scenario }} \ quay.io/ansible-freeipa/upstream-tests:${{ parameters.scenario }} - docker start ${{ parameters.scenario }} + podman start ${{ parameters.scenario }} retryCountOnTaskFailure: 5 displayName: Setup test container env: @@ -85,7 +89,7 @@ jobs: displayName: Run playbook tests env: IPA_SERVER_HOST: ${{ parameters.scenario }} - RUN_TESTS_IN_DOCKER: true + RUN_TESTS_IN_DOCKER: podman IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }} IPA_DISABLED_TESTS: ${{ variables.ipa_disabled_tests }} IPA_VERBOSITY: "-vvv"