2023-11-24 20:12:55 +00:00
|
|
|
FROM registry.fedoraproject.org/fedora:39
|
2023-07-18 17:19:10 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV HISTSIZE=10000
|
|
|
|
ENV HISTTIMEFORMAT="%d/%m/%y %T "
|
|
|
|
ENV HISTFILESIZE=20000
|
|
|
|
|
2024-02-13 10:14:34 +00:00
|
|
|
#temporarily download this way, since helm in fedora repo is broken
|
|
|
|
ENV HELM_VERSION="3.14.0"
|
|
|
|
|
|
|
|
ENV PKGS_BASE="fzf git python3-pip rclone rsync bash-completion kubernetes-client golang-sigs-k8s-kustomize"
|
2023-07-18 17:19:10 +00:00
|
|
|
ENV PKGS_TEMP="python3-devel gcc wget"
|
|
|
|
|
|
|
|
RUN dnf clean all && \
|
|
|
|
dnf install -y ${PKGS_BASE} ${PKGS_TEMP} && \
|
2023-09-19 14:37:07 +00:00
|
|
|
pip3 install python-openstackclient python-swiftclient python-heatclient && \
|
2023-07-18 17:19:10 +00:00
|
|
|
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz && \
|
|
|
|
tar -xvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz && \
|
|
|
|
chmod +x openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/* && \
|
|
|
|
mv openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc /usr/bin/ && \
|
|
|
|
rm -rf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit* && \
|
2024-02-13 10:14:34 +00:00
|
|
|
curl -L https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar -xz -C /tmp && mv /tmp/linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm && \
|
2023-07-18 17:19:10 +00:00
|
|
|
dnf remove -y ${PKGS_TEMP} && \
|
|
|
|
dnf -y autoremove && \
|
|
|
|
dnf -y clean all && \
|
|
|
|
mkdir /data
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
|
2023-12-22 14:48:15 +00:00
|
|
|
COPY kube_ps.sh /root/kube_ps.sh
|
2023-07-18 17:19:10 +00:00
|
|
|
|
2023-12-22 14:48:15 +00:00
|
|
|
RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash;\
|
|
|
|
source /root/kube_ps.sh;\
|
|
|
|
PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\
|
|
|
|
' >> /root/.bashrc
|
2023-07-18 17:19:10 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/bash" ]
|