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
RUN true && \
apt-get update && \
apt-get install -y git libgpgme11 libsubid4 libdevmapper1.02.1 && \
apt-get install -y bash-completion git libgpgme11 libsubid4 libdevmapper1.02.1 && \
adduser tool && \
getent passwd && \
apt-get clean && \
......@@ -96,6 +96,11 @@ RUN true && set -x && \
tar -zxvf /srv/kustomize_linux_amd64.tar.gz && \
mv kustomize /usr/local/bin/kustomize && \
cd .. && rm -rf install && \
helm completion bash > /etc/bash_completion.d/helm && \
istioctl completion bash > /etc/bash_completion.d/istioctl && \
kubectl completion bash > /etc/bash_completion.d/kubectl && \
kustomize completion bash > /etc/bash_completion.d/kustomize && \
skopeo completion bash > /etc/bash_completion.d/skopeo && \
true
USER tool:tool
......@@ -118,5 +123,6 @@ FROM host-base-tools AS final-output
COPY --from=host-build-tools /home/tool/ /home/tool/
COPY --from=host-build-tools /usr/local/bin/ /usr/local/bin/
COPY --from=host-build-tools /usr/local/sbin/ /usr/local/sbin/
COPY --from=host-build-tools /etc/bash_completion.d/ /etc/bash_completion.d/
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
......