I want to use standard-inventory-docker to run tests from the network linux system role: https://github.com/linux-system-roles/network/blob/master/tests/tests_default.yml
Commandline: TEST_DOCKER_EXTRA_ARGS="-it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro" TEST_SUBJECTS=docker:milcom/centos7-systemd ansible-playbook -i /usr/share/ansible/inventory/standard-inventory-docker tests/tests_default.yml
This fails because the inventory scripts hardcodes an entry point to /bin/sh: https://pagure.io/standard-test-roles/blob/master/f/inventory/standard-inventory-docker#_100
To have the image running with systemd, the entrypoint should be the default one from the Dockerfile (/usr/sbin/init). Not sure why there is an explicit entrypoint, maybe it can just be skipped. Users can still set it via the DOCKER_EXTRA_ARGS variable if needed.
/usr/sbin/init
DOCKER_EXTRA_ARGS
Log in to comment on this ticket.