This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/dockers/docker-orchagent
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
..
base_image_files [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
arp_update.conf [docker-orchagent]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
buffermgrd.sh [Reclaim buffer] Common infrastructure update for reclaiming buffer (#9133) 2021-12-01 02:28:46 +00:00
critical_processes [submodule]: swss Tunnel Manager changes (#5843) 2020-12-26 11:17:18 -08:00
docker-init.sh [swss]: Wait for vlan intf to start ndppd (#10119) (#10153) 2022-03-04 20:40:29 -08:00
Dockerfile.j2 Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00
enable_counters.py Set default values only on the first start (#7735) 2021-06-16 12:38:30 +00:00
ipinip.json.j2 [IPinIP] Add Loopback2 interface, change dscp mode to uniform (#7234) 2021-04-08 18:38:59 +00:00
ndppd.conf [swss]: Wait for vlan intf to start ndppd (#10119) (#10153) 2022-03-04 20:40:29 -08:00
ndppd.conf.j2 [docker-orchagent]: Increase ndppd kernel poll interval (#7456) 2021-06-02 02:38:54 +00:00
orchagent.sh [Multi Asic] support of swss.rec and sairedis.rec for multi asic (#6310) 2021-02-23 23:56:01 +00:00
ports.json.j2 [cfggen] Make Jinja2 Template Python 3 Compatible 2020-09-30 07:07:43 -07:00
supervisord.conf [swss]: Listen for undeliverable tunnel packets (#9348) 2021-12-16 11:59:34 -08:00
switch.json.j2 Make backend device checking more robust (#5730) 2020-11-10 15:06:35 -08:00
swssconfig.sh Fix for additional intf flap during fast-reboot (#9166) 2021-11-09 23:20:06 +00:00
tunnel_packet_handler.py [swss]: Reduce tunnel_packet_handler memory usage (#9762) 2022-02-08 19:07:40 +00:00
vlan_vars.j2 [swss] Reduce Calls to SONiC Cfggen (#5177) 2020-08-17 15:47:52 -07:00
wait_for_link.sh.j2 [swss]: Wait for vlan intf to start ndppd (#10119) (#10153) 2022-03-04 20:40:29 -08:00