[Mellanox] Install python2 on syncd (#14151)

- Why I did it
Some scripts on syncd require Python2 support.

- How I did it
Add Python2 to syncd docker

- How to verify it
Run manually python scripts under Nvidia SDK debug to ensure they are working
This commit is contained in:
Dror Prital 2023-03-08 13:41:41 +02:00 committed by GitHub
parent 086c7f5871
commit c4e34452af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,17 +29,20 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
libxml2 \
python-dev \
python3-pip \
python3-dev \
python-is-python3 \
{%- if ENABLE_ASAN == "y" %}
libasan6 \
{%- endif %}
python-setuptools \
python3-setuptools
RUN pip3 install --upgrade pip
RUN apt-get purge -y python-pip
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
{% if docker_syncd_mlnx_debs.strip() -%}
# Copy locally-built Debian package dependencies
{{ copy_files("debs/", docker_syncd_mlnx_debs.split(' '), "/debs/") }}