@@ -6,29 +6,25 @@ COPY monitor-hw /usr/local/sbin/monitor-hw
66COPY collector /usr/local/sbin/collector
77COPY setup-apply-firmware /usr/local/sbin/setup-apply-firmware
88COPY setup-isoreboot /usr/local/sbin/setup-isoreboot
9+
910CMD ["/usr/local/sbin/monitor-hw" ]
1011
1112# Install vendor tools
1213FROM stage1
1314LABEL org.opencontainers.image.source="https://github.com/cybozu-go/setup-hw"
1415
15- # See https://linux.dell.com/repo/community/openmanage/
16- ARG OMSA_VERSION=11100
17- ARG UBUNTU_VERSION=jammy
18-
19- # Setup DELL repository
20- RUN apt-get update -y && apt-get install -y --no-install-recommends wget gnupg ca-certificates curl\
21- && echo "deb http://linux.dell.com/repo/community/openmanage/${OMSA_VERSION}/${UBUNTU_VERSION} ${UBUNTU_VERSION} main" | tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list \
22- && wget https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc \
23- && apt-key add 0x1285491434D8786F.asc \
24- && rm 0x1285491434D8786F.asc
25-
26- # To avoid error postinstall script of srvadmin-all in the contaioner enviroment.
16+ # Do not delete the following line to prevent installation errors in a container environment.
2717COPY systemctl-dummy /usr/bin/systemctl
2818
29- # Install DELL's tools
30- # monitor-hw call /usr/libexec/instsvcdrv-helper which depends on "kmod" package. We must install "kmod"
3119RUN apt-get update -y \
32- && ln -s /usr/lib/x86_64-linux-gnu/libssl.so.3 /usr/lib/libssl.so \
33- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends srvadmin-all srvadmin-idracadm8 kmod \
34- && rm /usr/bin/systemctl
20+ && apt-get install -y --no-install-recommends pciutils libargtable2-0 kmod
21+
22+ RUN mkdir /pkg
23+ COPY iDRACTools/racadm/UBUNTU22/x86_64/*.deb /pkg/
24+ RUN dpkg -i /pkg/srvadmin-hapi_11.3.0.0_amd64.deb \
25+ && dpkg -i /pkg/srvadmin-idracadm7_11.3.0.0_all.deb \
26+ && dpkg -i /pkg/srvadmin-idracadm8_11.3.0.0_amd64.deb
27+
28+ RUN apt-get clean \
29+ && rm -rf /pkg \
30+ && rm -rf /var/lib/apt/lists/*
0 commit comments