Browse Source

Reducing disk footprint for Ubuntu/Debian images

Only install English locales and do not install documentation.

http://wiki.ubuntu.com/ReducingDiskFootprint

Change-Id: I129cd7cc8777112acb751c600feb8900c0c2a461
changes/44/351744/3
Christian Berendt 6 years ago
parent
commit
28f5722e24
  1. 3
      docker/base/Dockerfile.j2
  2. 9
      docker/base/dpkg_reducing_disk_footprint
  3. 5
      releasenotes/notes/dpkg-reducing-disk-footprint-2a6b0056d57bd1de.yaml

3
docker/base/Dockerfile.j2

@ -190,6 +190,9 @@ RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc
# This will prevent questions from being asked during the install
ENV DEBIAN_FRONTEND noninteractive
# Reducing disk footprint
COPY dpkg_reducing_disk_footprint /etc/dpkg/dpkg.cfg.d/dpkg_reducing_disk_footprint
# Need apt-transport-https BEFORE we replace sources.list or apt-get update wont work!
RUN apt-get update && apt-get -y install --no-install-recommends apt-transport-https ca-certificates

9
docker/base/dpkg_reducing_disk_footprint

@ -0,0 +1,9 @@
path-exclude /usr/share/doc/*
path-include /usr/share/doc/*/copyright
path-exclude /usr/share/man/*
path-exclude /usr/share/groff/*
path-exclude /usr/share/info/*
path-exclude /usr/share/lintian/*
path-exclude /usr/share/linda/*
path-exclude /usr/share/locale/*
path-include /usr/share/locale/en*

5
releasenotes/notes/dpkg-reducing-disk-footprint-2a6b0056d57bd1de.yaml

@ -0,0 +1,5 @@
---
other:
- Reducing disk footprint for Ubuntu/Debian images
by only installing English locales and no
documentation files.
Loading…
Cancel
Save