Skip to content

Commit

Permalink
Change (cmd): Revert images to use CMD /bin/sh and /bin/bash (#16)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joeltimothyoh authored Jan 1, 2023
1 parent a9c8db1 commit 7357fd7
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion variants/alpine/3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.8.19-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.9.18-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.9.18-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.10.7-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.10.7-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=4.8.0-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=5.8.0-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=6.6.0-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.6.20-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=2.7.17-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/alpine/edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apk update \
&& apk add --no-cache ansible=7.1.0-r0 openssh-client \
&& rm -rf /var/cache/apk/*

CMD ["ansible"]
CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion variants/ubuntu/16.04-ppa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \
&& apt-get remove -y --autoremove software-properties-common \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apt-get update \
&& apt-get install -y ansible=2.1.1.0-1~ubuntu16.04.1 openssh-client \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/18.04-ppa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \
&& apt-get remove -y --autoremove software-properties-common \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apt-get update \
&& apt-get install -y ansible=2.5.1+dfsg-1ubuntu0.1 openssh-client \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/20.04-ppa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \
&& apt-get remove -y --autoremove software-properties-common \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apt-get update \
&& apt-get install -y ansible=2.9.6+dfsg-1 openssh-client \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/22.04-ppa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \
&& apt-get remove -y --autoremove software-properties-common \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion variants/ubuntu/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN apt-get update \
&& apt-get install -y ansible=2.10.7+merged+base+2.10.8+dfsg-1 openssh-client \
&& rm -rf /var/lib/apt/lists/*

CMD ["ansible"]
CMD ["/bin/bash"]

0 comments on commit 7357fd7

Please sign in to comment.