On Mon, May 28, 2018 at 02:19:19PM +0200, Miro HronĨok wrote:
I would still very much like to run the CI tests on my machine, in
an
isolated environment (such as mock, docker, etc.). Without that possibility,
the entire benefit is worthless.
Is there nobody who would know how to run the tests?
This works for me:
TEST_SUBJECTS=~/cloud-images/Fedora-Cloud-Base-28-1.1.x86_64.qcow2
TEST_ARTIFACTS=~/.cache/artifacts
ansible-playbook -i /usr/share/ansible/inventory/standard-inventory-qcow2 tests.yml
I use these images:
https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImag...
https://download.fedoraproject.org/pub/fedora/linux/releases/28/Cloud/x86...
https://download.fedoraproject.org/pub/fedora/linux/releases/26/CloudImag...
https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-180...
https://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud-180...
There is also a tool that I use in a different project that starts a
docker container that starts VMs:
https://github.com/linux-system-roles/test-harness/pull/19/commits/0c985c...
It could be adjusted for your use case I guess.
It is not docker but a VM, but it is a start.
Kind regards
Till