Initial cloud-toolbox, add util-linux to toolbox
This commit is contained in:
parent
a4d94fbd45
commit
434b8a98b1
4 changed files with 44 additions and 4 deletions
30
cloud-toolbox/Dockerfile
Normal file
30
cloud-toolbox/Dockerfile
Normal file
|
@ -0,0 +1,30 @@
|
|||
FROM registry.fedoraproject.org/fedora:38
|
||||
|
||||
USER root
|
||||
|
||||
ENV HISTSIZE=10000
|
||||
ENV HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
ENV HISTFILESIZE=20000
|
||||
|
||||
ENV PKGS_BASE="fzf git python3-pip rclone bash-completion"
|
||||
ENV PKGS_TEMP="python3-devel gcc wget"
|
||||
|
||||
RUN dnf clean all && \
|
||||
dnf install -y ${PKGS_BASE} ${PKGS_TEMP} && \
|
||||
pip3 install python-openstackclient && \
|
||||
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* && \
|
||||
dnf remove -y ${PKGS_TEMP} && \
|
||||
dnf -y autoremove && \
|
||||
dnf -y clean all && \
|
||||
mkdir /data
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
|
||||
RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
|
||||
|
||||
ENTRYPOINT [ "/bin/bash" ]
|
Loading…
Add table
Add a link
Reference in a new issue