Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions image/cli-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG ARCHITECTURE
USER root
RUN dnf update -y --skip-broken --nobest &&\
dnf upgrade -y --skip-broken --nobest &&\
dnf install nano jq libxcrypt-compat cpio -y &&\
dnf install nano jq libxcrypt-compat cpio bash-completion -y &&\
dnf clean all

# 2. Upgrade pip, install wheel, then install Python modules
Expand Down Expand Up @@ -51,7 +51,8 @@ RUN bash /tmp/remediate.sh

# 6. Cleanup
RUN rm -rf /tmp/*
# 11. Setup working environment

# 7. Setup working environment
WORKDIR /mascli
ENTRYPOINT ["/tini", "--"]
CMD bash
5 changes: 4 additions & 1 deletion image/cli-base/install/install-argocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ curl -sSL -o argocd-linux-${TARGET_PLATFORM} https://github.com/argoproj/argo-cd
rm argocd-linux-${TARGET_PLATFORM}

echo "ArgoCD version:"
argocd version --client
argocd version --client

# Enable autocompletion for helm
argocd completion bash > /etc/bash_completion.d/argocd_completion
5 changes: 4 additions & 1 deletion image/cli-base/install/install-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ unzip -q awscliv2.zip
rm -rf aws
rm awscliv2.zip
echo "AWS version:"
aws --version
aws --version

# Set up bash completion for aws
ln -s /usr/local/bin/aws_completer /etc/bash_completion.d/aws_completion
5 changes: 4 additions & 1 deletion image/cli-base/install/install-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ else
chmod 777 /usr/local/bin/helm
fi
echo "Helm version:"
helm version
helm version

# Enable autocompletion for helm
helm completion bash > /etc/bash_completion.d/helm_completion
6 changes: 5 additions & 1 deletion image/cli-base/install/install-oc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ do
--target-platform)
TARGET_PLATFORM="$2"
;;

*)
# unknown option, use as additional params directly to docker
EXTRA_PARAMS="$EXTRA_PARAMS $key $2"
Expand Down Expand Up @@ -41,3 +41,7 @@ mv oc-mirror /usr/local/bin/
chmod +x /usr/local/bin/oc-mirror
rm -f oc-mirror.tar.gz
rm -f /opt/app-root/src/.oc-mirror.log

# Enable bash completion for oc and kubectl
oc completion bash > /etc/bash_completion.d/oc_completion
kubectl completion bash > /etc/bash_completion.d/kubectl_completion
Loading