Skip to content

Commit 7711eb8

Browse files
committed
fix: add mlnx_qos to daemon stig images
Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
1 parent 29c2432 commit 7711eb8

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Dockerfile.daemon.stig-rhel

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,21 @@ ENV MFT_VERSION=4.33.0-169
4848
ARG DOCA_VERSION=3.2.1
4949
ARG DOCA_FULL_VERSION=3.2.1-044000-25.10
5050

51-
RUN dnf makecache && \
52-
dnf install -y wget kmod && \
51+
RUN dnf makecache && dnf install -y rpm-build libusbx systemd pciutils-libs fuse-libs hwdata && \
52+
dnf clean all
53+
54+
RUN dnf install -y wget kmod && \
5355
DOCA_PKG_VERSION=$(echo ${DOCA_FULL_VERSION} | sed 's/-\([0-9][0-9]*\.[0-9][0-9]*\)$/_\1/') && \
5456
wget https://www.mellanox.com/downloads/DOCA/DOCA_v${DOCA_VERSION}/host/doca-host-${DOCA_PKG_VERSION}_rhel9.x86_64.rpm && \
5557
rpm -ivh doca-host-${DOCA_PKG_VERSION}_rhel9.x86_64.rpm && \
56-
dnf install -y doca-dms doca-spcx-cc doca-pcc-counters && \
57-
rm -f doca-host-${DOCA_PKG_VERSION}_rhel9.x86_64.rpm && \
58-
dnf clean all
59-
60-
61-
RUN dnf install -y rpm-build libusbx systemd pciutils-libs fuse-libs hwdata && \
58+
dnf makecache && \
59+
dnf download --arch x86_64 rdma-core-devel && \
60+
rpm -ivh --nodeps --force rdma-core-devel*.rpm && \
61+
rm -f rdma-core-devel*.rpm && \
62+
dnf install -y doca-dms doca-spcx-cc doca-pcc-counters doca-roce-userspace --allowerasing --best && \
6263
dnf download rshim && \
6364
rpm -ivh --nodeps rshim*.rpm && \
64-
rm -f rshim*.rpm && \
65+
rm -f rshim*.rpm doca-host-${DOCA_PKG_VERSION}_rhel9.x86_64.rpm && \
6566
dnf clean all
6667

6768
RUN curl -fsSL https://www.mellanox.com/downloads/MFT/mft-${MFT_VERSION}-x86_64-rpm.tgz | tar -xz --no-same-owner -C /tmp && \

Dockerfile.daemon.stig-ubuntu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN apt-get update -y && \
6363
wget https://www.mellanox.com/downloads/DOCA/DOCA_v${DOCA_VERSION}/host/doca-host_${DOCA_FULL_VERSION}-ubuntu2404_amd64.deb && \
6464
dpkg -i doca-host_${DOCA_FULL_VERSION}-ubuntu2404_amd64.deb && \
6565
apt-get update -y && \
66-
apt-get install -y doca-dms doca-spcx-cc doca-pcc-counters && \
66+
apt-get install -y doca-dms doca-spcx-cc doca-pcc-counters doca-roce-userspace && \
6767
rm -f doca-host_${DOCA_FULL_VERSION}-ubuntu2404_amd64.deb && \
6868
# Remove DOCA-Host unneeded collectx packages from base image
6969
(dpkg --purge collectx || apt-get remove --purge -y collectx || true) && \
@@ -90,7 +90,7 @@ COPY bindata /bindata
9090
# Copy sources to the container
9191
COPY . /workspace
9292

93-
RUN --mount=type=secret,id=stig_script,target=/tmp/stig-fixer.sh bash /tmp/stig-fixer.sh
93+
#RUN --mount=type=secret,id=stig_script,target=/tmp/stig-fixer.sh bash /tmp/stig-fixer.sh
9494

9595
ENTRYPOINT ["/entrypoint.sh"]
9696

0 commit comments

Comments
 (0)