aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Berendt <berendt@betacloud-solutions.de>2016-08-05 15:42:52 +0200
committerChristian Berendt <berendt@betacloud-solutions.de>2016-08-05 15:52:46 +0200
commit28f5722e24c47ae3b7c6fdc698c1d4f9ac836a35 (patch)
tree3e9047d9242d8bd831d3002efa005ab60e8ab657 /docker
parent3071d32a3fb76e72901112a9b3e7fc59233f54bf (diff)
downloadkolla-28f5722e24c47ae3b7c6fdc698c1d4f9ac836a35.tar.gz
kolla-28f5722e24c47ae3b7c6fdc698c1d4f9ac836a35.zip
Reducing disk footprint for Ubuntu/Debian images
Only install English locales and do not install documentation. http://wiki.ubuntu.com/ReducingDiskFootprint Change-Id: I129cd7cc8777112acb751c600feb8900c0c2a461
Diffstat (limited to 'docker')
-rw-r--r--docker/base/Dockerfile.j23
-rw-r--r--docker/base/dpkg_reducing_disk_footprint9
2 files changed, 12 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*