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

Change (cmd): Revert images to use CMD /bin/sh and /bin/bash #16

Conversation

joeltimothyoh
Copy link
Owner

@joeltimothyoh joeltimothyoh commented Jan 1, 2023

Setting CMD values to ansible is mostly pointless as ansible is an executable rather than a shell. Parameters specified after the docker run image:tag command are ignored unless ansible is set as the images' ENTRYPOINT. Yet since ansible-playbook is most likely to be used in images, specifying ansible as the images' ENTRYPOINT would introduce a breaking-change in design of the images potentially reducing their usefulness by being too specific in design. Having a more generic design is preferred and allows administrators to also interact within container shell environments for administrating systems in combination with ansible binaries.

This reverts commit 862bf05.

@joeltimothyoh joeltimothyoh self-assigned this Jan 1, 2023
@joeltimothyoh joeltimothyoh added this to the next-release milestone Jan 1, 2023
Setting `CMD` values to `ansible` is mostly pointless as `ansible` is an executable rather than a shell. Parameters specified after the `docker run image:tag` command are ignored unless `ansible` is set as the images' `ENTRYPOINT`. Yet since `ansible-playbook` is most likely to be used in images, specifying `ansible` as the images' `ENTRYPOINT` would introduce a breaking-change in design of the images potentially reducing their usefulness by being too specific in design. Having a more generic design is preferred and allows administrators to also interact within container shell environments for administrating systems in combination with `ansible` binaries.

This reverts commit 862bf05.
@joeltimothyoh joeltimothyoh force-pushed the change/cmd-revert-images-to-use-cmd--bin-sh-and--bin-bash branch from 9cdc0d6 to e260558 Compare January 1, 2023 18:37
@joeltimothyoh joeltimothyoh merged commit 7357fd7 into master Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant