Skip to content

Commit

Permalink
extra commits to run container.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 22, 2024
1 parent 1a46d2a commit a183ca1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/azure/templates/playbook_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a183ca1

Please sign in to comment.