1
1
##
2
- ## Copyright (c) 2016-2021 NVIDIA CORPORATION & AFFILIATES.
2
+ ## Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES.
3
3
## Apache-2.0
4
4
##
5
5
## Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,23 +25,27 @@ RUN mkdir -p /var/run/sx_sdk
25
25
RUN apt-get purge -y syncd
26
26
27
27
## Pre-install the fundamental packages
28
- RUN apt-get update \
29
- && apt-get -y install \
30
- net-tools \
31
- python-setuptools \
32
- build-essential \
33
- libssl-dev \
34
- libffi-dev \
35
- python-dev \
36
- wget \
37
- cmake \
38
- libqt5core5a \
39
- libqt5network5 \
40
- libboost-atomic1.74.0
28
+ RUN apt-get update \
29
+ && apt-get -y install \
30
+ net-tools \
31
+ build-essential \
32
+ libssl-dev \
33
+ libffi-dev \
34
+ wget \
35
+ cmake \
36
+ libqt5core5a \
37
+ libqt5network5 \
38
+ libboost-atomic1.74.0 \
39
+ python3-pip \
40
+ python3-dev \
41
+ python-is-python3 \
42
+ python3-setuptools
43
+
44
+ RUN pip3 install --upgrade pip
41
45
42
46
# Build and install python-scapy
43
- RUN curl http://ftp.us.debian.org/debian/pool/main/s/scapy/python -scapy_2.4.0-2_all.deb --output python -scapy_2.4.0-2_all.deb \
44
- && dpkg -i python -scapy_2.4.0-2_all.deb \
47
+ RUN curl http://ftp.us.debian.org/debian/pool/main/s/scapy/python3 -scapy_2.4.0-2_all.deb --output python3 -scapy_2.4.0-2_all.deb \
48
+ && dpkg -i python3 -scapy_2.4.0-2_all.deb \
45
49
&& apt install -f
46
50
47
51
{% if docker_syncd_mlnx_rpc_debs .strip () -%}
@@ -64,10 +68,6 @@ RUN curl http://ftp.us.debian.org/debian/pool/main/s/scapy/python-scapy_2.4.0-2_
64
68
{{ install_debian_packages(docker_syncd_mlnx_rpc_pydebs.split(' ')) }}
65
69
{% endif %}
66
70
67
- # Install pip2 since it is no longer in the APT upstream
68
- RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \
69
- && python2 get-pip.py
70
-
71
71
RUN wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
72
72
&& tar xvfz 1.0.0.tar.gz \
73
73
&& cd nanomsg-1.0.0 \
@@ -78,10 +78,10 @@ RUN wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
78
78
&& cd .. \
79
79
&& rm -fr nanomsg-1.0.0 \
80
80
&& rm -f 1.0.0.tar.gz \
81
- && pip2 install cffi==1.7 .0 \
82
- && pip2 install --upgrade cffi==1.7.0 \
83
- && pip2 install wheel \
84
- && pip2 install nnpy \
81
+ && pip3 install cffi==1.16 .0 \
82
+ && pip3 install wheel \
83
+ && pip3 install nnpy \
84
+ && pip3 install ptf \
85
85
&& mkdir -p /opt \
86
86
&& cd /opt \
87
87
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py \
0 commit comments