-
Notifications
You must be signed in to change notification settings - Fork 388
Added support for override command directive when conductor is building image #719
base: develop
Are you sure you want to change the base?
Conversation
…rective when conductor is building image
|
Thank you for taking the time to work on this. We always appreciate feedback and contribution, so a big "Thank You!" If we decide to accept this, I suspect it needs a bit more documentation, including an example. We may also want to adjust how it's implemented. I would like to discuss this on Monday at the next Container WG meeting. I'll put it on the agenda. I think the meeting time is 11:00 PM in Thailand, so there is no expectation that you attend. I believe you have provided sufficient detail for the group to discuss and decide next steps. Thanks, again! |
|
@chouseknecht Thank you for your response. I've updated an example in the first comment. |
|
The container working group decided the following:
Using this new approach, your example Please let me know, if you have any questions, comments, or need help making this change. |
…gs in container build time
|
@chouseknecht I've pushed changes reflexed container working group decision. |
| environment=dict(ANSIBLE_CONTAINER=1) | ||
| ) | ||
|
|
||
| if service.get('build_overrides'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this actually belongs in config.py, and it should be handled as part of the set_env method on the host side. That method would then accept a new env value of build, and return the appropriate configuration.
|
Is this till being worked on? Being able to build systemd containers is fundamental for me to start using ansible-container. Any development/testing help needed? |
|
@danielkza When I have some free time, will work on it. Or submitting your own PR is fine. |
|
@chouseknecht Sorry, I'm new here, but why do we need separate |
|
Has this been abandoned? We also need this functionality to use the tool and would be happy to lend a hand. |
|
@sambanks You can try to issue PR based on current develop |
|
Thanks @Voronenko but I have a workaround (manually linking into etc/systemd/system/multi-user.target.wants/) which has kept us moving for now. |
|
Well, if you know solution, perhaps formulate it into some article (saying medium) and refer here. We might add some KB articles to Wiki than. Idea of the opensource products are - if you can improve, improved locally, etc - return your commitment to community. |
|
It's not a solution, it's just a workaround for our specific use case. If you manually link the service file, as I shared in the previous message, it will start on the next boot, but it's very far from proper systemd support. |
|
it would be really nice if it's supported. |
ISSUE TYPE
SUMMARY
Added support for override command directive when conductor is building image with systemd as pid 1. (feature idea #399)
Default command conductor use to run docker when building image is
This PR will allow user to override it with
build_commandin each service.from
container.ymlThen user can install and manage services the same way he do on a normal server.
from
roles/grafana/tasks/main.yml