Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to run integration test without docker #59

Open
theko2fi opened this issue May 6, 2023 · 3 comments
Open

allow to run integration test without docker #59

theko2fi opened this issue May 6, 2023 · 3 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@theko2fi
Copy link

theko2fi commented May 6, 2023

The integration tests run by default inside a docker container. It would be nice if this behavior could be overrided by the user. I mean, an option to choose if we want to run with docker or not. I would like to run directly on the runner host.

Thanks !

@webknjaz
Copy link
Member

Thanks for filing the issue! This action is currently aimed at providing seamless and reproducible workflow and using docker is what makes it possible. We don't currently plan to allow running it in an arbitrary environment.
However, if you need to do so for some reason, you can pip install ansible-core and call ansible-test manually with any arguments you like. I think this would be the way to go anyway, since you're opting to maintaining your in-job setup details more flexibly and would already be reproducing what this action does in your job definitions.

Though, may I ask why you think you need to avoid using docker?

@webknjaz webknjaz added question Further information is requested wontfix This will not be worked on labels May 11, 2023
@theko2fi
Copy link
Author

Thanks for your feedback! You're right, I will go that ansible-test way like I used to do. I just learned about GitHub actions modules and wanted to give it a try.

I'm not trying to avoid using docker, I love it. But right now, I'm developing an Ansible collection for multipass. Multipass is similar to Vagrant, it helps you quickly spin up Ubuntu virtual machines on your host. My Ansible collection will contain modules and connection plugin to connect and manage (create, delete...) multipass VMs. So my integration tests need to run directly on the runner host, since VM can't be created inside docker containers.

@webknjaz
Copy link
Member

That's an interesting case. I wonder if putting docker on the same network would help access multipass from within a container. Can its daemon listen to a TCP/IP socket rather than a file socket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants