From 3c9837b484d3b01e5487936efa72548d2972a85e Mon Sep 17 00:00:00 2001 From: pettershao-ragilenetworks <81281940+pettershao-ragilenetworks@users.noreply.github.com> Date: Sun, 8 Jan 2023 13:12:13 +0800 Subject: [PATCH] ]pmon]: Import requests libraries for Ragile platform (#13171) if there is no request, you need to use curl to get data from bmc, and each query needs to start a curl process. pmon is a circular query, which will pull up multiple processes in a loop, which consumes a lot. Using request does not need to pull up the process. --- dockers/docker-platform-monitor/Dockerfile.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index 14fd244779..1c6b484814 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -41,6 +41,9 @@ RUN pip3 install grpcio==1.39.0 \ # Barefoot platform vendors' sonic_platform packages import these Python libraries RUN pip3 install thrift==0.13.0 netifaces +# Ragile platform vendors' sonic_platform packages import these Python libraries +RUN pip3 install requests + # We install the libpci module in order to be able to do PCI transactions RUN pip3 install libpci