Skip to content

Instantly share code, notes, and snippets.

@k0ste
Forked from duckworth/Dockerfile
Last active February 4, 2025 11:18
Show Gist options
  • Save k0ste/63d8c3da42c7d627a50bc9a21803ba36 to your computer and use it in GitHub Desktop.
Save k0ste/63d8c3da42c7d627a50bc9a21803ba36 to your computer and use it in GitHub Desktop.
racadm on OSX
FROM "quay.io/centos/centos:stream9"
RUN dnf -y --setopt="tsflags=nodocs" upgrade && \
dnf -y --setopt="tsflags=nodocs" install wget
# https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
RUN update-crypto-policies --set DEFAULT:SHA1
RUN wget --progress=dot:giga -O bootstrap.cgi \
https://linux.dell.com/repo/hardware/dsu/bootstrap.cgi && \
bash bootstrap.cgi && rm -f bootstrap.cgi
RUN dnf -y install dell-system-update -y && \
dnf clean all && dnf -y --setopt="tsflags=nodocs" upgrade && \
dnf clean all
RUN dnf -y install srvadmin-idrac dmidecode openssl-devel && \
dnf -y --setopt="tsflags=nodocs" --disablerepo=* \
--enablerepo=dell-system-update_dependent upgrade
RUN dnf clean all && dnf -y --setopt="tsflags=nodocs" upgrade && \
dnf clean all && rm -rf "/var/cache/dnf"
RUN ln -s /opt/dell/srvadmin/sbin/racadm /usr/bin/racadm
@hb0nes
Copy link

hb0nes commented Feb 4, 2025

 => ERROR [6/8] RUN dnf -y install srvadmin-idrac dmidecode openssl-devel &&   dnf -y --setopt="tsflags=nodocs" --disablerepo=*   --enablerepo=dell-system-update_dependent upgrade                            21.4s
------
 > [6/8] RUN dnf -y install srvadmin-idrac dmidecode openssl-devel &&   dnf -y --setopt="tsflags=nodocs" --disablerepo=*   --enablerepo=dell-system-update_dependent upgrade:
1.745 CentOS Stream 9 - BaseOS                        6.5 MB/s | 8.4 MB     00:01
5.575 CentOS Stream 9 - AppStream                      11 MB/s |  22 MB     00:02
13.01 CentOS Stream 9 - Extras packages                24 kB/s |  20 kB     00:00
15.26 dell-system-update_independent                  155 kB/s | 230 kB     00:01
18.21 dell-system-update_dependent                    117 kB/s | 254 kB     00:02
21.37 No match for argument: srvadmin-idrac
21.39 Error: Unable to find a match: srvadmin-idrac
------
Dockerfile:13
--------------------
  12 |       dnf clean all
  13 | >>> RUN dnf -y install srvadmin-idrac dmidecode openssl-devel && \
  14 | >>>   dnf -y --setopt="tsflags=nodocs" --disablerepo=* \
  15 | >>>   --enablerepo=dell-system-update_dependent upgrade
  16 |     RUN dnf clean all && dnf -y --setopt="tsflags=nodocs" upgrade && \
--------------------
ERROR: failed to solve: process "/bin/sh -c dnf -y install srvadmin-idrac dmidecode openssl-devel &&   dnf -y --setopt=\"tsflags=nodocs\" --disablerepo=*   --enablerepo=dell-system-update_dependent upgrade" did not complete successfully: exit code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment