Skip to content

Instantly share code, notes, and snippets.

@k0ste
Forked from duckworth/Dockerfile
Last active October 18, 2024 19:17
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
@alaa-ledger
Copy link

it's finally working!

I believe the only difference was that I had to build it using your command, using --platform linux/amd64 although I had specified that in the Dockerfile previously. thanks a whole lot.

@doslager
Copy link

Thank you! this worked for me. But....seems to be an error in line 6

RUN RUN update-crypto-policies --set DEFAULT:SHA1

should be just a single "RUN"
RUN update-crypto-policies --set DEFAULT:SHA1

@k0ste
Copy link
Author

k0ste commented Oct 18, 2024

Thank you! this worked for me. But....seems to be an error in line 6

RUN RUN update-crypto-policies --set DEFAULT:SHA1

should be just a single "RUN" RUN update-crypto-policies --set DEFAULT:SHA1

Definitely

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