c927ea6b by Adam Heath

Add bash-completion support for the tools being installed.

1 parent 4d4ae7bb
...@@ -35,7 +35,7 @@ FROM debian:bookworm-20241223-slim AS host-base-tools ...@@ -35,7 +35,7 @@ FROM debian:bookworm-20241223-slim AS host-base-tools
35 35
36 RUN true && \ 36 RUN true && \
37 apt-get update && \ 37 apt-get update && \
38 apt-get install -y git libgpgme11 libsubid4 libdevmapper1.02.1 && \ 38 apt-get install -y bash-completion git libgpgme11 libsubid4 libdevmapper1.02.1 && \
39 adduser tool && \ 39 adduser tool && \
40 getent passwd && \ 40 getent passwd && \
41 apt-get clean && \ 41 apt-get clean && \
...@@ -96,6 +96,11 @@ RUN true && set -x && \ ...@@ -96,6 +96,11 @@ RUN true && set -x && \
96 tar -zxvf /srv/kustomize_linux_amd64.tar.gz && \ 96 tar -zxvf /srv/kustomize_linux_amd64.tar.gz && \
97 mv kustomize /usr/local/bin/kustomize && \ 97 mv kustomize /usr/local/bin/kustomize && \
98 cd .. && rm -rf install && \ 98 cd .. && rm -rf install && \
99 helm completion bash > /etc/bash_completion.d/helm && \
100 istioctl completion bash > /etc/bash_completion.d/istioctl && \
101 kubectl completion bash > /etc/bash_completion.d/kubectl && \
102 kustomize completion bash > /etc/bash_completion.d/kustomize && \
103 skopeo completion bash > /etc/bash_completion.d/skopeo && \
99 true 104 true
100 105
101 USER tool:tool 106 USER tool:tool
...@@ -118,5 +123,6 @@ FROM host-base-tools AS final-output ...@@ -118,5 +123,6 @@ FROM host-base-tools AS final-output
118 COPY --from=host-build-tools /home/tool/ /home/tool/ 123 COPY --from=host-build-tools /home/tool/ /home/tool/
119 COPY --from=host-build-tools /usr/local/bin/ /usr/local/bin/ 124 COPY --from=host-build-tools /usr/local/bin/ /usr/local/bin/
120 COPY --from=host-build-tools /usr/local/sbin/ /usr/local/sbin/ 125 COPY --from=host-build-tools /usr/local/sbin/ /usr/local/sbin/
126 COPY --from=host-build-tools /etc/bash_completion.d/ /etc/bash_completion.d/
121 COPY entrypoint.sh /usr/local/sbin/entrypoint.sh 127 COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
122 ENTRYPOINT ["entrypoint.sh"] 128 ENTRYPOINT ["entrypoint.sh"]
......