sonic-buildimage/dockers/docker-base-buster
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
..
etc Updated imfile configuration for supervisord logs (#6368) 2021-01-06 18:47:36 -08:00
root [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
Dockerfile.j2 Image disk space reduction (#10172) 2022-03-15 18:12:49 -07:00
dpkg_01_drop [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
LICENSE [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
no_install_recommend_suggest [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
no-check-valid-until [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
sources.list Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
sources.list.arm64 Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
sources.list.armhf Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00