test
Some checks failed
Build images / update-images-manifests (push) Blocked by required conditions
Build images / build-images-amd64 (push) Has been cancelled
Build images / build-images-arm64 (push) Has been cancelled

This commit is contained in:
Maciej Lebiest 2024-04-09 21:38:18 +02:00
parent fd292f1e4d
commit d2da433619

View file

@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora-minimal FROM registry.fedoraproject.org/fedora:39
USER root USER root
@ -6,18 +6,20 @@ ENV HISTSIZE=10000
ENV HISTTIMEFORMAT="%d/%m/%y %T " ENV HISTTIMEFORMAT="%d/%m/%y %T "
ENV HISTFILESIZE=20000 ENV HISTFILESIZE=20000
# for helm install script ENV PKGS_BASE="fzf git python3-pip rclone rsync bash-completion kubernetes-client helm golang-sigs-k8s-kustomize"
ENV VERIFY_CHECKSUM="false" ENV PKGS_TEMP="python3-devel gcc wget"
ENV PKGS_BASE="fzf git python3-pip rclone rsync bash-completion kubernetes-client golang-sigs-k8s-kustomize" RUN dnf clean all && \
ENV PKGS_TEMP="python3-devel gcc wget tar" dnf install -y ${PKGS_BASE} ${PKGS_TEMP} && \
pip3 install python-openstackclient python-swiftclient python-heatclient && \
RUN dnf5 install -y ${PKGS_BASE} ${PKGS_TEMP} && \ wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz && \
pip3 install python-openstackclient python-swiftclient python-heatclient python-designateclient && \ tar -xvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz && \
curl -o /dev/stdout https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - && \ chmod +x openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/* && \
dnf5 remove -y ${PKGS_TEMP} && \ mv openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc /usr/bin/ && \
dnf5 -y autoremove && \ rm -rf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit* && \
dnf5 -y clean all && \ dnf remove -y ${PKGS_TEMP} && \
dnf -y autoremove && \
dnf -y clean all && \
mkdir /data mkdir /data
WORKDIR /data WORKDIR /data
@ -25,9 +27,8 @@ WORKDIR /data
COPY kube_ps.sh /root/kube_ps.sh 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;\ RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash;\
source /root/kube_ps.sh;\ source /root/kube_ps.sh;\
source /etc/profile.d/bash_completion.sh;\ PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\
PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\ ' >> /root/.bashrc
' >> /root/.bashrc
ENTRYPOINT [ "/bin/bash" ] ENTRYPOINT [ "/bin/bash" ]