diff --git a/build_debian.sh b/build_debian.sh index 1486be65c0fd..46c62d3f529a 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -517,6 +517,9 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'setuptools==49.6.00' sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'wheel==0.35.1' +# For supporting redfish +sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'redfish' + # docker Python API package is needed by Ansible docker module as well as some SONiC applications sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docker==5.0.3' diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index 79265ec9cb73..25a45abfb8ac 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -40,7 +40,8 @@ RUN pip3 install grpcio==1.39.0 \ grpcio-tools==1.39.0 # Barefoot platform vendors' sonic_platform packages import the Python 'thrift' library -RUN pip3 install thrift==0.13.0 +RUN pip3 install thrift==0.13.0 \ + redfish # We install the libpci module in order to be able to do PCI transactions RUN pip3 install libpci