Bug 1527394: Remove unneeded packages/files in the test image r=jmaher
authorChris AtLee <catlee@mozilla.com>
Tue, 26 Feb 2019 06:42:50 +0000
changeset 519311 bec37c9a80b9dfc9e924a7a657ec2f6eb96782cf
parent 519310 d819234834aad12e3388ceb0b09dfb6c8cdd3da9
child 519312 9c42526c4442304d733d16f1e10365a91a702f7f
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1527394
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1527394: Remove unneeded packages/files in the test image r=jmaher Depends on D19541 Differential Revision: https://phabricator.services.mozilla.com/D19542
taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh
--- a/taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh
+++ b/taskcluster/docker/recipes/ubuntu1604-test-system-setup.sh
@@ -68,16 +68,23 @@ apt_packages+=('unzip')
 apt_packages+=('uuid')
 apt_packages+=('vim')
 apt_packages+=('wget')
 apt_packages+=('xvfb')
 apt_packages+=('yasm')
 apt_packages+=('zip')
 apt_packages+=('libsecret-1-0:i386')
 
+# Make sure we have X libraries for 32-bit tests
+apt_packages+=('libxt6:i386')
+apt_packages+=('libpulse0:i386')
+apt_packages+=('libasound2:i386')
+apt_packages+=('libxtst6:i386')
+apt_packages+=('libgtk2.0-0:i386')
+
 # get xvinfo for test-linux.sh to monitor Xvfb startup
 apt_packages+=('x11-utils')
 
 # Bug 1232407 - this allows the user to start vnc
 apt_packages+=('x11vnc')
 
 # Bug 1176031: need `xset` to disable screensavers
 apt_packages+=('x11-xserver-utils')
@@ -157,25 +164,45 @@ apt-get -q -y -f install \
     mesa-common-dev
 
 # additional packages for linux32 tests
 sudo dpkg --add-architecture i386
 apt-get update
 apt-get -q -y -f install \
     libavcodec-ffmpeg-extra56:i386 \
     libgtk-3-0:i386 \
-    libdbus-glib-1-2:i386 \
-    openjdk-8-jdk:i386
+    libdbus-glib-1-2:i386
 
 # use fc-cache:i386 to pre-build the font cache for i386 binaries
 apt-get -q -y -f install \
     fontconfig:i386 \
 
 # revert the list of repos
 cp sources.list.orig /etc/apt/sources.list
 apt-get update
 
 # clean up
+# Purge unneeded stuff from the image
+apt-get -y purge cheese 'libcheese*'
+apt-get -y purge gnome-user-guide
+apt-get -y purge 'libreoffice*'
+#apt-get -y purge firefox thunderbird
+apt-get -y purge 'liboxideqt*'
+apt-get -y purge gnome-mahjongg
+apt-get -y purge ubuntu-docs
+apt-get -y purge llvm-3.8-dev libllvm3.8
+apt-get -y purge git
+apt-get -y purge lintian
+apt-get -y purge freepats
+apt-get -y purge ubuntu-mobile-icons
+apt-get -y purge hplip
+apt-get -y purge rhythmbox
+apt-get -y purge thunderbird
+apt-get -y autoremove
+
+# We don't need no docs!
+rm -rf /usr/share/help /usr/share/doc /usr/share/man
+
 cd /
 rm -rf /setup ~/.ccache ~/.cache ~/.npm
 apt-get clean
 apt-get autoclean
 rm -f "$0"