From 93b95b033fbe05696917270f0776f07391dbb03c Mon Sep 17 00:00:00 2001 From: xumia Date: Sun, 29 May 2022 00:05:12 +0000 Subject: [PATCH] Remove the python2 packages from docker-sonic-mgmt-frameware --- .../docker-sonic-mgmt-framework/Dockerfile.j2 | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 index eea23a2d4620..738e1a945e60 100644 --- a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 @@ -9,21 +9,6 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y g++ python3-dev libxml2 -# TODO: Remove these lines once we no longer need Python 2 -RUN apt-get install -f -y python-dev python-pip -RUN pip2 install --upgrade 'pip<21' -RUN apt-get purge -y python-pip -RUN pip2 install setuptools==40.8.0 -RUN pip2 install wheel==0.35.1 -RUN pip2 install connexion==1.1.15 \ - setuptools==21.0.0 \ - grpcio-tools==1.20.0 \ - protobuf==3.17.3 \ - certifi==2017.4.17 \ - python-dateutil==2.6.0 \ - six==1.11.0 \ - urllib3==1.21.1 - RUN pip3 install connexion==2.7.0 \ setuptools==21.0.0 \ grpcio-tools==1.20.0 \ @@ -47,9 +32,6 @@ COPY ["start.sh", "rest-server.sh", "/usr/bin/"] COPY ["mgmt_vars.j2", "/usr/share/sonic/templates/"] COPY ["supervisord.conf", "/etc/supervisor/conf.d/"] -# TODO: Remove this line once we no longer need Python 2 -RUN apt-get purge -y python-dev - RUN apt-get remove -y g++ python3-dev RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y RUN rm -rf /debs ~/.cache