diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-08-09 02:34:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-08-09 02:34:49 +0000 |
| commit | 969fccdede480bf81fc393575e4e143bbef545b5 (patch) | |
| tree | 3ee0b790254555aa56c55210a112ce5d2d223347 | |
| parent | aa5864fc409ac8ff27f0b380b3ba45a3de0d1b98 (diff) | |
| parent | 28f5722e24c47ae3b7c6fdc698c1d4f9ac836a35 (diff) | |
| download | kolla-969fccdede480bf81fc393575e4e143bbef545b5.tar.gz kolla-969fccdede480bf81fc393575e4e143bbef545b5.zip | |
Merge "Reducing disk footprint for Ubuntu/Debian images"
| -rw-r--r-- | docker/base/Dockerfile.j2 | 3 | ||||
| -rw-r--r-- | docker/base/dpkg_reducing_disk_footprint | 9 | ||||
| -rw-r--r-- | releasenotes/notes/dpkg-reducing-disk-footprint-2a6b0056d57bd1de.yaml | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 1503d5039..864ec2adb 100644 --- a/docker/base/Dockerfile.j2 +++ b/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 diff --git a/docker/base/dpkg_reducing_disk_footprint b/docker/base/dpkg_reducing_disk_footprint new file mode 100644 index 000000000..87b8255f9 --- /dev/null +++ b/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* diff --git a/releasenotes/notes/dpkg-reducing-disk-footprint-2a6b0056d57bd1de.yaml b/releasenotes/notes/dpkg-reducing-disk-footprint-2a6b0056d57bd1de.yaml new file mode 100644 index 000000000..ab0939e7b --- /dev/null +++ b/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. |
