From c62eaed0909a43fb139e7a50ed6d7c934b326976 Mon Sep 17 00:00:00 2001 From: Tim Pilius Date: Thu, 15 Aug 2024 14:19:49 -0400 Subject: [PATCH] Removing unnecessary configuration files in apt.conf.d that are already present in the base image. --- README.md | 4 ++-- .../apt/apt.conf.d/docker-autoremove-suggests | 13 ------------- overlay/etc/apt/apt.conf.d/docker-clean | 16 ---------------- overlay/etc/apt/apt.conf.d/docker-gzip-indexes | 9 --------- overlay/etc/apt/apt.conf.d/docker-no-languages | 4 ---- 5 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 overlay/etc/apt/apt.conf.d/docker-autoremove-suggests delete mode 100644 overlay/etc/apt/apt.conf.d/docker-clean delete mode 100644 overlay/etc/apt/apt.conf.d/docker-gzip-indexes delete mode 100644 overlay/etc/apt/apt.conf.d/docker-no-languages diff --git a/README.md b/README.md index 20b2115..d45609b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This image provides a standard ubuntu docker base image for other docker images to build on top of. -It is currently based on 18.04 LTS (Bionic Beaver) +It is currently based on 24.04 LTS ## Extending this image @@ -25,7 +25,7 @@ You can easily extend the behavour of this image in the following ways ## Usage -This docker image is not designed for use by anyone outside of the steamcache organisation, you're welcome to try, but support will be limited: HERE BE DRAGONS +This docker image is not designed for use by anyone outside of the Lancache organisation, you're welcome to try, but support will be limited: HERE BE DRAGONS 1. Make a Dockerfile and specify `lancachenet/ubuntu` on the `FROM` line. 2. Anything you want run in the container should be started by supervisord. diff --git a/overlay/etc/apt/apt.conf.d/docker-autoremove-suggests b/overlay/etc/apt/apt.conf.d/docker-autoremove-suggests deleted file mode 100644 index 5e47797..0000000 --- a/overlay/etc/apt/apt.conf.d/docker-autoremove-suggests +++ /dev/null @@ -1,13 +0,0 @@ -# Since Docker users are looking for the smallest possible final images, the -# following emerges as a very common pattern: -# RUN apt-get update \ -# && apt-get install -y \ -# && \ -# && apt-get purge -y --auto-remove -# By default, APT will actually _keep_ packages installed via Recommends or -# Depends if another package Suggests them, even and including if the package -# that originally caused them to be installed is removed. Setting this to -# "false" ensures that APT is appropriately aggressive about removing the -# packages it added. -# https://aptitude.alioth.debian.org/doc/en/ch02s05s05.html#configApt-AutoRemove-SuggestsImportant -Apt::AutoRemove::SuggestsImportant "false"; diff --git a/overlay/etc/apt/apt.conf.d/docker-clean b/overlay/etc/apt/apt.conf.d/docker-clean deleted file mode 100644 index f9348ed..0000000 --- a/overlay/etc/apt/apt.conf.d/docker-clean +++ /dev/null @@ -1,16 +0,0 @@ -# Since for most Docker users, package installs happen in "docker build" steps, -# they essentially become individual layers due to the way Docker handles -# layering, especially using CoW filesystems. What this means for us is that -# the caches that APT keeps end up just wasting space in those layers, making -# our layers unnecessarily large (especially since we'll normally never use -# these caches again and will instead just "docker build" again and make a brand -# new image). -# Ideally, these would just be invoking "apt-get clean", but in our testing, -# that ended up being cyclic and we got stuck on APT's lock, so we get this fun -# creation that's essentially just "apt-get clean". -DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; }; -APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; }; -Dir::Cache::pkgcache ""; -Dir::Cache::srcpkgcache ""; -# Note that we do realize this isn't the ideal way to do this, and are always -# open to better suggestions (https://github.com/docker/docker/issues). diff --git a/overlay/etc/apt/apt.conf.d/docker-gzip-indexes b/overlay/etc/apt/apt.conf.d/docker-gzip-indexes deleted file mode 100644 index cdb6621..0000000 --- a/overlay/etc/apt/apt.conf.d/docker-gzip-indexes +++ /dev/null @@ -1,9 +0,0 @@ -# Since Docker users using "RUN apt-get update && apt-get install -y ..." in -# their Dockerfiles don't go delete the lists files afterwards, we want them to -# be as small as possible on-disk, so we explicitly request "gz" versions and -# tell Apt to keep them gzipped on-disk. -# For comparison, an "apt-get update" layer without this on a pristine -# "debian:wheezy" base image was "29.88 MB", where with this it was only -# "8.273 MB". -Acquire::GzipIndexes "true"; -Acquire::CompressionTypes::Order:: "gz"; diff --git a/overlay/etc/apt/apt.conf.d/docker-no-languages b/overlay/etc/apt/apt.conf.d/docker-no-languages deleted file mode 100644 index 6e0e41f..0000000 --- a/overlay/etc/apt/apt.conf.d/docker-no-languages +++ /dev/null @@ -1,4 +0,0 @@ -# In Docker, we don't often need the "Translations" files, so we're just wasting -# time and space by downloading them, and this inhibits that. For users that do -# need them, it's a simple matter to delete this file and "apt-get update". :) -Acquire::Languages "none";