sonic-buildimage/dockers/docker-sonic-mgmt-framework
Saikrishna Arcot 5617b1ae3e
Image disk space reduction (#10172)
# Why I did it

Reduce the disk space taken up during bootup and runtime.

# How I did it

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>
2022-03-15 18:12:49 -07:00
..
base_image_files [docker-mgmt-framework]: update mgmt framework docker to support sonic-cli cmd (#6148) 2021-06-02 19:38:21 -07:00
Dockerfile.j2 Image disk space reduction (#10172) 2022-03-15 18:12:49 -07:00
mgmt_vars.j2 [mgmt-framework]: Fix typo in mgmt_vars.j2 (#8475) 2021-08-24 10:54:13 -07:00
rest-server.sh [mgmt-framework] Call sonic-cfggen Once (#4937) 2020-07-12 18:08:52 +00:00
start.sh [docker-mgmt-framework]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
supervisord.conf [dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7083) 2021-03-27 21:14:24 -07:00