sonic-buildimage/dockers
Saikrishna Arcot e9db38594d
Image disk space reduction (#10172) (#10371)
Reduce the disk space taken up during bootup and runtime.

1. Remove python package cache from the base image and from the containers.
2. During bootup, if logs are to be stored in memory, then don't create the `var-log.ext4` file just to delete it later during bootup.
3. For the partition containing `/host`, don't reserve any blocks for just the root user. This just makes sure all disk space is available for all users, if needed during upgrades (for example).

* Remove pip2 and pip3 caches from some containers

Only containers which appeared to have a significant pip cache size are
included here.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Don't create var-log.ext4 if we're storing logs in memory

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Run tune2fs on the device containing /host to not reserve any blocks for just the root user

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
(cherry picked from commit 5617b1ae3e)
2022-03-29 10:11:28 -07:00
..
docker-base Add a config variable to override default container registry instead of dockerhub. (#10166) (#10262) 2022-03-18 12:01:52 +08:00
docker-base-buster Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00
docker-base-stretch Add a config variable to override default container registry instead of dockerhub. (#10166) (#10262) 2022-03-18 12:01:52 +08:00
docker-basic_router [supervisord]: use abspath as supervisord entrypoint (#5995) 2020-11-22 21:18:44 -08:00
docker-config-engine [docker-base-buster][docker-config-engine-buster] No longer install Python 2 (#6162) 2020-12-25 21:29:25 -08:00
docker-config-engine-buster Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00
docker-config-engine-stretch [docker-base-buster][docker-config-engine-buster] No longer install Python 2 (#6162) 2020-12-25 21:29:25 -08:00
docker-database [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
docker-dhcp-relay docker-dhcp-relay: Fix waiting for interfaces to get set up (#9034) 2021-10-22 17:14:22 +00:00
docker-fpm-frr Add dualtor TSA/B/C support (#9726) 2022-03-08 19:02:06 +00:00
docker-fpm-gobgp [202012][dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7203) 2021-04-01 12:52:19 -07:00
docker-fpm-quagga Support readonly vtysh for sudoers (#7383) 2021-04-29 10:08:55 -07:00
docker-iccpd [iccpd][docker] fix initial startup configuration (#7982) 2021-08-05 15:21:33 +00:00
docker-lldp [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
docker-mux [mux]: Call write_standby from host only 2021-11-10 18:54:33 -08:00
docker-nat Create a docker-swss-layer that holds the swss package. 2022-01-27 23:53:09 -08:00
docker-orchagent Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00
docker-platform-monitor fix build error (#9902) 2022-02-03 08:52:29 +05:30
docker-ptf Add a config variable to override default container registry instead of dockerhub. (#10166) (#10262) 2022-03-18 12:01:52 +08:00
docker-ptf-sai [PTF-SAIv2]Add ptf docker for sai-ptf (saiv2) (#9729) 2022-02-23 22:46:33 +00:00
docker-router-advertiser [radv] Support multiple ipv6 prefixes per vlan interface (#9934) (#10253) 2022-03-20 17:17:59 -07:00
docker-sflow Create a docker-swss-layer that holds the swss package. 2022-01-27 23:53:09 -08:00
docker-snmp updated jinja template for snmp contact python2 vs python3 issue (#9949) 2022-02-12 01:06:13 +00:00
docker-sonic-mgmt Add a config variable to override default container registry instead of dockerhub. (#10166) (#10262) 2022-03-18 12:01:52 +08:00
docker-sonic-mgmt-framework Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00
docker-sonic-restapi [restapi]: Don't use python/python2 for restapi start scripts (#10285) 2022-03-22 18:35:27 -07:00
docker-sonic-telemetry [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
docker-swss-layer-buster Create a docker-swss-layer that holds the swss package. 2022-01-27 23:53:09 -08:00
docker-teamd Create a docker-swss-layer that holds the swss package. 2022-01-27 23:53:09 -08:00
dockerfile-macros.j2 [sonic-config-engine] Clean up dependencies, pin versions; install Python 3 package in Buster container (#5656) 2020-10-26 13:48:50 -07:00