ContainersWorkspace/cloud-toolbox/Containerfile

28 lines
897 B
Text
Raw Normal View History

FROM forgejo.maciej.cloud/pkg/mc-fedora-base
2024-02-23 08:32:55 +00:00
# for helm install script
ENV VERIFY_CHECKSUM="false"
ENV PKGS_BASE="git python3-pip rclone rsync kubernetes-client"
ENV PKGS_TEMP="python3-devel gcc wget tar"
RUN dnf5 install -y ${PKGS_BASE} ${PKGS_TEMP} && \
pip3 install python-openstackclient python-swiftclient python-heatclient python-designateclient && \
2024-02-23 08:32:55 +00:00
curl -o /dev/stdout https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - && \
dnf5 remove -y ${PKGS_TEMP} && \
dnf5 -y autoremove && \
dnf5 -y clean all && \
mkdir /data
WORKDIR /data
2023-12-22 14:48:15 +00:00
COPY kube_ps.sh /root/kube_ps.sh
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;\
source /etc/profile.d/bash_completion.sh;\
2023-12-22 14:48:15 +00:00
PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\
' >> /root/.bashrc
ENTRYPOINT [ "/bin/bash" ]