From edbd217f81bd53eb6a6ff9fe8fdf3ce20bd2f6bc Mon Sep 17 00:00:00 2001 From: Zhaohui Sun Date: Fri, 22 Apr 2022 05:12:00 +0000 Subject: [PATCH] add some packages which installed in py2 environment Signed-off-by: Zhaohui Sun --- dockers/docker-ptf/Dockerfile.j2 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/dockers/docker-ptf/Dockerfile.j2 b/dockers/docker-ptf/Dockerfile.j2 index bf22ba97ea06..ab53a3bf2ea2 100644 --- a/dockers/docker-ptf/Dockerfile.j2 +++ b/dockers/docker-ptf/Dockerfile.j2 @@ -152,6 +152,33 @@ RUN python3 -m pip install setuptools \ && pip3 install supervisor \ && pip3 install ipython==5.4.1 \ && pip3 install Cython \ + && git clone https://github.com/sflow/sflowtool \ + && cd sflowtool \ + && ./boot.sh \ + && ./configure \ + && make \ + && make install \ + && cd .. \ + && rm -fr sflowtool \ + && git clone https://github.com/dyninc/OpenBFDD.git \ + && cd OpenBFDD \ + && ./autogen.sh \ + && ./configure \ + && make \ + && make install \ + && cd .. \ + && rm -fr OpenBFDD \ + && wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \ + && tar xvfz 1.0.0.tar.gz \ + && cd nanomsg-1.0.0 \ + && mkdir -p build \ + && cd build \ + && cmake .. \ + && make install \ + && ldconfig \ + && cd ../.. \ + && rm -fr nanomsg-1.0.0 \ + && rm -f 1.0.0.tar.gz \ && pip3 install cffi \ && pip3 install nnpy \ && pip3 install dpkt \