From 68e063b4fbf38be307e1d0006cac3ec728d560c9 Mon Sep 17 00:00:00 2001 From: Ashwin Srinivasan <93744978+assrinivasan@users.noreply.github.com> Date: Mon, 14 Nov 2022 11:44:36 -0800 Subject: [PATCH] Added libpci and pciutils to the pmon docker (#12684) This enables the pcied daemon to call the corresponding system commands needed for pci transactions --- dockers/docker-platform-monitor/Dockerfile.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index 51d944d170dd..79265ec9cb73 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -27,6 +27,7 @@ RUN apt-get update && \ python3-jsonschema \ libpci3 \ iputils-ping \ + pciutils \ # smartmontools version should match the installed smartmontools in sonic_debian_extension build template smartmontools=7.2-1 @@ -41,6 +42,9 @@ RUN pip3 install grpcio==1.39.0 \ # Barefoot platform vendors' sonic_platform packages import the Python 'thrift' library RUN pip3 install thrift==0.13.0 +# We install the libpci module in order to be able to do PCI transactions +RUN pip3 install libpci + {% if docker_platform_monitor_debs.strip() -%} # Copy locally-built Debian package dependencies {{ copy_files("debs/", docker_platform_monitor_debs.split(' '), "/debs/") }}