ansible-container
ansible-container copied to clipboard
Allow to build image for a specific service from container.yml
It's either all or none right now. It would be great if specific services can be selected just like -l option in ansible-playbook command line.
The caveat of course is that building a single service breaks orchestrated builds, but we can note this in the docs. Outside of that, I don't see any issue with adding this feature.
@ajayaa You can use the ansible_options to insert the -l parameter, I'm doing this. But remember, to use the ansible-container push you have to have all the images compiled so you need to run at least once the ansible-container build without this parameter.
@chouseknecht should we add this as a feature or just recommend @ReeSilva's approach?
Shouldn't this be closed. Don't know since when exactly, but there is a --services
option to the build
that does this. @ajayaa Isn't it what you wanted ?