Bug 1294264 - Don't install recommended packages in desktop test images; r?jmaher draft
authorGregory Szorc <gps@mozilla.com>
Fri, 19 Aug 2016 08:50:18 -0700
changeset 403351 0c2e5b9707b4badb63e7897eb471d5fe352ee5bc
parent 403340 23c2ec5544b9e0a74a047b87b594e4c36a8fe95c
child 528884 b2c878ab77fb5835019ed73760bb89aff94fbd37
push id26888
push usergszorc@mozilla.com
push dateFri, 19 Aug 2016 15:50:56 +0000
reviewersjmaher
bugs1294264
milestone51.0a1
Bug 1294264 - Don't install recommended packages in desktop test images; r?jmaher This drops the size of the Docker images by several hundred megabytes. MozReview-Commit-ID: 97tXiKKVYQF
testing/docker/recipes/ubuntu1204-test-system-setup.sh
testing/docker/recipes/ubuntu1604-test-system-setup.sh
--- a/testing/docker/recipes/ubuntu1204-test-system-setup.sh
+++ b/testing/docker/recipes/ubuntu1204-test-system-setup.sh
@@ -115,17 +115,17 @@ apt_packages+=('x11-xserver-utils')
 
 # use Ubuntu's Python-2.7 (2.7.3 on Precise)
 apt_packages+=('python-dev')
 apt_packages+=('python-pip')
 
 apt-get update
 # This allows ubuntu-desktop to be installed without human interaction
 export DEBIAN_FRONTEND=noninteractive
-apt-get install -y --force-yes ${apt_packages[@]}
+apt-get install -y --force-yes --no-install-recommends ${apt_packages[@]}
 
 dpkg-reconfigure locales
 
 tooltool_fetch() {
     cat >manifest.tt
     python /setup/tooltool.py fetch
     rm manifest.tt
 }
--- a/testing/docker/recipes/ubuntu1604-test-system-setup.sh
+++ b/testing/docker/recipes/ubuntu1604-test-system-setup.sh
@@ -81,17 +81,17 @@ apt_packages+=('x11-xserver-utils')
 
 # use Ubuntu's Python-2.7 (2.7.3 on Precise)
 apt_packages+=('python-dev')
 apt_packages+=('python-pip')
 
 apt-get update
 # This allows ubuntu-desktop to be installed without human interaction
 export DEBIAN_FRONTEND=noninteractive
-apt-get install -y -f ${apt_packages[@]}
+apt-get install -y -f --no-install-recommends ${apt_packages[@]}
 
 dpkg-reconfigure locales
 
 # set up tooltool (temporarily)
 tooltool_fetch() {
     cat >manifest.tt
     python /setup/tooltool.py fetch
     rm manifest.tt