sonic-buildimage/dockers
abdosi c6c8c934e1
[buildfix-201911] 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 01:28:55 -07:00
..
docker-base Enable the notify mode of rsyslogd imfile module used for supervisord (#6298) 2020-12-31 17:04:00 -08:00
docker-base-stretch Updated imfile configuration for supervisord logs (#6368) 2021-01-06 18:48:24 -08:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-dhcp-relay [201911][Monit] Use VLAN name to differentiate each Monit service of dhcp_relay (#7378) 2021-04-22 18:04:29 -07:00
docker-fpm-frr Fixes for errors seen in staging devices (#7171) 2021-04-08 15:30:46 -07:00
docker-fpm-gobgp [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-fpm-quagga [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-lldp-sv2 [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-nat [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-orchagent [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-platform-monitor [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-ptf [docker-ptf]: Add teamd dependency to ptf (#6994) 2021-03-10 10:50:17 -08: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 [201911][Monit] Monitor critical processes in radv and dhcp_relay containers. (#7340) 2021-04-16 08:40:06 -07:00
docker-sflow [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-snmp-sv2 [buildfix-201911] Fix the snmp docker build error. (#7452) 2021-04-28 01:28:55 -07:00
docker-sonic-mgmt [mgmt docker] move pycryptodome installation to the end of the docker building (#4917) 2020-07-11 09:46:51 -07:00
docker-sonic-mgmt-framework [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-sonic-restapi [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-sonic-telemetry [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-teamd [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
dockerfile-macros.j2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00