ansible-container icon indicating copy to clipboard operation
ansible-container copied to clipboard

Allow to build image for a specific service from container.yml

Open ajayaa opened this issue 8 years ago • 4 comments

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.

ajayaa avatar Aug 21 '16 11:08 ajayaa

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.

chouseknecht avatar Aug 21 '16 12:08 chouseknecht

@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.

ReeSilva avatar Aug 23 '16 09:08 ReeSilva

@chouseknecht should we add this as a feature or just recommend @ReeSilva's approach?

gregdek avatar Nov 22 '16 15:11 gregdek

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 ?

cans avatar Jul 22 '18 22:07 cans