mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
* Began with docker inventory plugin. * Linting. * Improve plugin, add basic unit tests. * Linting. * Add integration test. * Adjust tests to case that there are more containers. * There can be stopped containers. ci_coverage * docker -> docker_containers
23 lines
534 B
Bash
Executable File
23 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
[[ -n "$DEBUG" || -n "$ANSIBLE_DEBUG" ]] && set -x
|
|
|
|
set -euo pipefail
|
|
|
|
cleanup() {
|
|
echo "Cleanup"
|
|
ansible-playbook playbooks/docker_cleanup.yml
|
|
echo "Done"
|
|
}
|
|
|
|
trap cleanup INT TERM EXIT
|
|
|
|
echo "Setup"
|
|
ANSIBLE_ROLES_PATH=.. ansible-playbook playbooks/docker_setup.yml
|
|
|
|
echo "Test docker_containers inventory 1"
|
|
ansible-playbook -i inventory_1.docker.yml playbooks/test_inventory_1.yml
|
|
|
|
echo "Test docker_containers inventory 2"
|
|
ansible-playbook -i inventory_2.docker.yml playbooks/test_inventory_2.yml
|