Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .ci/dockerfiles/Dockerfile.rhel8.6
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,32 @@ ARG _UID=6213
ARG _GID=101
ARG _LOGIN=swx-jenkins
ARG _HOME=/var/home/$_LOGIN

RUN echo "${_LOGIN} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
mkdir -p ${_HOME} && \
groupadd -f -g "$_GID" "$_LOGIN" && \
useradd -u "$_UID" -g "$_GID" -s /bin/bash -m -d ${_HOME} "${_LOGIN}" && \
chown -R ${_LOGIN} ${_HOME} && \
mkdir /build && chown -R ${_LOGIN} /build
RUN rm -f /etc/yum.repos.d/sw-rivermax ubi.repo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment here why we are removing this repo - in few weeks we will forget why we did it


FROM core as static
ARG _LOGIN=swx-jenkins

RUN yum install -y yum-utils \
&& yum-config-manager --add-repo https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/ \
&& yum --nogpgcheck install -y cppcheck \
&& yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
&& yum install -y csbuild clang-tools-extra sudo curl autoconf automake make libtool \
libnl3-devel libnl3 rdma-core-devel rdma-core bc \
&& yum clean all
RUN echo "[sw-rivermax-rpm]" > /etc/yum.repos.d/sw-rivermax-rpm.repo && \
echo "name=sw-rivermax-rpm" >> /etc/yum.repos.d/sw-rivermax-rpm.repo && \
echo "baseurl=https://urm.nvidia.com/artifactory/sw-rivermax-rpm/" >> /etc/yum.repos.d/sw-rivermax-rpm.repo && \
echo "enabled=1" >> /etc/yum.repos.d/sw-rivermax-rpm.repo && \
echo "gpgcheck=0" >> /etc/yum.repos.d/sw-rivermax-rpm.repo && \
yum makecache && \
yum install -y yum-utils clang-tools-extra-19.1.7 sudo curl autoconf automake make libtool \
libnl3-devel libnl3 rdma-core-devel rdma-core bc && \
yum-config-manager --add-repo https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/ && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That this mean we need epel7 for cppcheck and epel8 for csbuild ?

yum --nogpgcheck install -y cppcheck && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y csbuild && \
yum clean all

RUN pip3 install -U pip --no-cache-dir \
&& pip3 install compiledb --no-cache-dir
Expand Down
9 changes: 8 additions & 1 deletion .ci/matrix_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ runs_on_dockers:
build_args: '--no-cache --target static',
category: 'tool'
}
- {name: 'xlio_static.csbuild', url: 'harbor.mellanox.com/swx-infra/media/x86_64/xlio_static.csbuild-clang18:20250515', category: 'tool', arch: 'x86_64' }
- {file: '.ci/dockerfiles/Dockerfile.rhel8.6',
arch: 'x86_64',
name: 'xlio_static.csbuild',
uri: '$arch/$name',
tag: '20250521',
build_args: '--no-cache --target static',
category: 'tool'
}
# tests
- {
file: '.ci/dockerfiles/Dockerfile.ubuntu22.04',
Expand Down