sonic-buildimage/dockers
lguohan f4fdf310b9
[build] Fix the snmp docker build error. (#7452) (#7459)
* [build] Fix the snmp docker build error. (#7452)

Issue is get_pip.py is moved to pip 21.1 (https://github.com/pypa/get-pip/commits/main) which is not compatible with 3.6.
Issue of pip itself is fixed as part of 21.1.1 in pip community (pypa/pip#9835).
However get-pip.py is still not updated to latest pip. Also get.pip.py does not support python 3.6 version explicitly (pypa/get-pip#88)

Step 15/29 : RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
 ---> Running in bece31f49267
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1891k  100 1891k    0     0  9564k      0 --:--:-- --:--:-- --:--:-- 9600k
Traceback (most recent call last):
  File "<stdin>", line 24298, in <module>
  File "<stdin>", line 139, in main
  File "<stdin>", line 115, in bootstrap
  File "<stdin>", line 96, in monkeypatch_for_cert
  File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/commands/__init__.py", line 9, in <module>
  File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/cli/base_command.py", line 12, in <module>
  File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/cli/cmdoptions.py", line 30, in <module>
  File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/utils/hashes.py", line 2, in <module>
ImportError: cannot import name 'NoReturn'
The command '/bin/sh -c curl https://bootstrap.pypa.io/get-pip.py | python3.6' returned a non-zero code: 1
How I did:

Got the file from https://github.com/pypa/get-pip/tree/21.0 and added to the buildimage
pin pip to the previous release 21.0.1. (Similar is done in other public repos eg: grpc/grpc-java#8115)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-28 23:08:26 -07:00
..
docker-base [rsyslog] Suppress duplicate messages from base image and all Docker containers (#2497) 2020-04-02 21:42:01 +00:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine [pip2]: pin down pip to 20.3.3 2021-01-30 05:07:48 -08:00
docker-database [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
docker-dhcp-relay [dhcpmon] Print Both Snapshot And Current Counters (#5374) 2020-09-16 09:57:36 -07:00
docker-fpm-frr [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
docker-fpm-gobgp [config] Fix an issue that bgp asn data type is not consistent (#953) 2017-09-13 21:23:06 -07:00
docker-fpm-quagga Clarify error message for bgpcfgd update loopback address (#5076) 2020-07-31 07:46:47 -07:00
docker-lldp-sv2 [docker-lldp] Fix lldpcli issue when description has special characters (#4133) 2020-02-14 19:38:39 +00:00
docker-orchagent [201811 Monit] Enable monitoring of SWSS daemons (#5144) 2020-08-13 20:42:06 -07:00
docker-platform-monitor [platform] Add SSD Health tools. (#4464) 2020-04-27 08:29:30 -07:00
docker-ptf [jessie based docker] remove dependency on some retired jessie repos (#2707) 2019-03-27 06:48:39 +00:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [201811] [radvd] Build radvd from source; Patch so as not to treat out-of-range MTU as an error (#2796) 2019-04-17 16:40:40 -07:00
docker-sflow/base_image_files [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
docker-snmp-sv2 [build] Fix the snmp docker build error. (#7452) (#7459) 2021-04-28 23:08:26 -07:00
docker-sonic-mgmt Remove unused packages in docker images and host (#2807) 2019-04-30 19:12:00 +00:00
docker-sonic-telemetry [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
docker-teamd [teamd]: increase startsecs to 5 seconds for teamsyncd (#4083) 2020-01-30 16:32:11 +00:00
docker-orchagent-bfn [barefoot]: Support for platforms based on Barefoot Networks' device (#1796) 2018-07-24 10:23:12 -07:00
docker-orchagent-cavm Add support for cavium SAI (#5) 2016-09-25 21:48:25 -07:00
docker-orchagent-centec Support centec platform (#376) 2017-03-04 02:17:38 -08:00
docker-orchagent-mlnx Squash merge master (11de390) 2016-08-04 10:39:33 -07:00
docker-orchagent-nephos [Platform] Add Ingrasys S9130-32X and S9230-64X with Nephos Switch ASIC (#1245) 2017-12-22 10:04:29 -08:00