-
Notifications
You must be signed in to change notification settings - Fork 139
Allow arguments to the atomic 'install', 'uninstall', 'start' and any additional container commans. #24
Comments
We talked about potentially allowing environment variables to be passed into the container. Something like But I would like to have a conversation with upstream perhaps on the atomic-devel list about this. |
In fact, I'd like both args and env, but I only opened the issue for one change. Of course, then we may need a new LABEL DOC="" so that atomic info will show the appropriate inputs for each step. Dang, we're re-inventing package management again.... |
Reason I want to bring this up for discussion, is some of Daniel Rieks original ideas was around having the install script ack questions, but then building a framework where the questions could be answered for automated installs. |
any news on the -e ? |
I was just experimenting with the |
@larsks Atomic run myimage will execute the LABEL run command, you want to overide this with your own command or just execute it with additional options? --options "-u username --password MyPassword" command substitution works. grep LABEL.*RUN Dockerfile atomic run test |
I'd also like to be able to pass additional arguments to the install command. This is usefulw hen you want to set i.e. passwords inside the container during deployment,. Currently I workaround this by relying on environment variables. |
The latest atomic code allows additional arguments to be passed to the INSTALL and UNINSTALL command. Any argument that comes after the IMAGE will get appended onto the INSTALL/UNINSTALL commands. |
What is the rational for not allowing args to RUN unless the container is On Fri, Jun 5, 2015 at 8:35 AM, Daniel J Walsh notifications@github.com
Mark Lamourine markllama@gmail.com |
This was a design decision that we need to go back and look at. @sctweedie wanted to have multiple atmomic runs end up in the same container. This model works well for the "tools" container model like rhel-tools. Basically the tool starts the container and then execs into the container. So changes in one rhel-tools container is seen by others when they run the container later or if multiple windows run the same container. atomic run ends up being create the container if it does not exist and start/exec into it if it currently exists. This seems to be confusing for people who want to build "single" run containers. |
I think this is still an issue. Example:
note the args aren't passed to the run command. Label is:
|
@purpleidea I believe #65 is trying to fix this |
Arguments to the 'atomic (install|uninstall|start...) commands would be appended to the shell invocation which corresponds to the command.
IE: if installing a container which requires authentication to a remote service, allow the caller to append those arguments to the 'atomic install
' command.
atomic install ipa-client [atomic args] -- --server <...> --username <...> --password <..>
The double-hyphen marker indicates that arguments to the atomic install command itself are complete. Any arguments following are to be appended to the LABEL INSTALL="..." string embedded in the image when the INSTALL command string is invoked
The text was updated successfully, but these errors were encountered: