This commit is contained in:
@@ -31,12 +31,18 @@ RUN apt-get update \
|
||||
|
||||
COPY iDRACTools /tmp/iDRACTools
|
||||
|
||||
# Dell iDRAC Tools packages try to start HAPI with systemctl during postinst.
|
||||
# The image only needs remote racadm/ipmitool, so a build-time shim is enough.
|
||||
RUN printf '#!/bin/sh\nexit 0\n' > /usr/bin/systemctl \
|
||||
&& chmod +x /usr/bin/systemctl
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
/tmp/iDRACTools/racadm/${IDRAC_TOOLS_UBUNTU_VERSION}/x86_64/srvadmin-hapi_*.deb \
|
||||
/tmp/iDRACTools/racadm/${IDRAC_TOOLS_UBUNTU_VERSION}/x86_64/srvadmin-idracadm7_*.deb \
|
||||
/tmp/iDRACTools/racadm/${IDRAC_TOOLS_UBUNTU_VERSION}/x86_64/srvadmin-idracadm8_*.deb \
|
||||
/tmp/iDRACTools/ipmitool/${IDRAC_TOOLS_UBUNTU_VERSION}_x86_64/ipmitool_*.deb \
|
||||
&& rm -f /usr/bin/systemctl \
|
||||
&& rm -rf /tmp/iDRACTools /var/lib/apt/lists/*
|
||||
|
||||
RUN python3 -m venv /opt/venv
|
||||
|
||||
Reference in New Issue
Block a user