[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:
parent
086c7f5871
commit
c4e34452af
@ -29,17 +29,20 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
|
python-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python-is-python3 \
|
|
||||||
{%- if ENABLE_ASAN == "y" %}
|
{%- if ENABLE_ASAN == "y" %}
|
||||||
libasan6 \
|
libasan6 \
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
python-setuptools \
|
||||||
python3-setuptools
|
python3-setuptools
|
||||||
|
|
||||||
RUN pip3 install --upgrade pip
|
RUN pip3 install --upgrade pip
|
||||||
RUN apt-get purge -y python-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() -%}
|
{% if docker_syncd_mlnx_debs.strip() -%}
|
||||||
# Copy locally-built Debian package dependencies
|
# Copy locally-built Debian package dependencies
|
||||||
{{ copy_files("debs/", docker_syncd_mlnx_debs.split(' '), "/debs/") }}
|
{{ copy_files("debs/", docker_syncd_mlnx_debs.split(' '), "/debs/") }}
|
||||||
|
Reference in New Issue
Block a user