cloud-toolbox: cleaning, add helmfile binary
All checks were successful
Build images / build-images-arm64 (push) Successful in 15m7s
Build images / build-images-amd64 (push) Successful in 15m25s
Build images / update-images-manifests (push) Successful in 31s

This commit is contained in:
Maciej Lebiest 2024-05-05 21:13:04 +02:00
parent 7c6b259f44
commit d451a31f1d
2 changed files with 6 additions and 431 deletions

View file

@ -1,3 +1,7 @@
FROM ghcr.io/helmfile/helmfile:canary as helmfile
# ----
FROM forgejo.maciej.cloud/pkg/mc-fedora-base
# for helm install script
@ -6,6 +10,8 @@ ENV VERIFY_CHECKSUM="false"
ENV PKGS_BASE="git python3-pip rclone rsync kubernetes-client"
ENV PKGS_TEMP="python3-devel gcc wget tar"
COPY --from=helmfile /usr/local/bin/helmfile /usr/local/bin/helmfile
RUN dnf5 install -y ${PKGS_BASE} ${PKGS_TEMP} && \
pip3 install python-openstackclient python-swiftclient python-heatclient python-designateclient && \
curl -o /dev/stdout https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - && \
@ -16,12 +22,4 @@ RUN dnf5 install -y ${PKGS_BASE} ${PKGS_TEMP} && \
WORKDIR /data
COPY kube_ps.sh /root/kube_ps.sh
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;\
PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\
' >> /root/.bashrc
ENTRYPOINT [ "/bin/bash" ]