Bug 1247168 - Stop installing most system packages; r=dustin draft
authorGregory Szorc <gps@mozilla.com>
Wed, 20 Jul 2016 11:59:22 -0700
changeset 390182 d2c050fb60ec2bf962a5ff46a3eda3e9473f4598
parent 390181 52427aaacdc02288dc41c4f85d2faf49887569d4
child 390183 a8a278ad57d25f13ae00dc373ddffb2df65d8b70
push id23614
push userbmo:gps@mozilla.com
push dateWed, 20 Jul 2016 19:22:19 +0000
reviewersdustin
bugs1247168
milestone50.0a1
Bug 1247168 - Stop installing most system packages; r=dustin I'm not sure why the decision image has so many packages installed. Most of them don't need to exist because the decision image only needs to obtain a copy of the Firefox repo and run `mach`. This doesn't require any build system per se. And all the Python dependencies are vendored in the Firefox repo. All we need is a Python 2.7 interpreter. This change reduces the decision image size from ~700 MB to ~300 MB. MozReview-Commit-ID: CUqc5TUVZSc
testing/docker/decision/system-setup.sh
--- a/testing/docker/decision/system-setup.sh
+++ b/testing/docker/decision/system-setup.sh
@@ -1,61 +1,27 @@
 #!/usr/bin/env bash
 
 set -v -e
 
 test `whoami` == 'root'
 
 apt-get update
 apt-get install -y --force-yes --no-install-recommends \
-    autotools-dev \
-    blt-dev \
-    bzip2 \
+    ca-certificates \
     curl \
-    ca-certificates \
-    dpkg-dev \
-    gcc-multilib \
-    g++-multilib \
     jq \
-    libbluetooth-dev \
-    libbz2-dev \
-    libexpat1-dev \
-    libffi-dev \
-    libffi6 \
-    libffi6-dbg \
-    libgdbm-dev \
-    libgpm2 \
-    libncursesw5-dev \
-    libreadline-dev \
-    libsqlite3-dev \
-    libssl-dev \
-    libtinfo-dev \
-    make \
-    mime-support \
-    netbase \
-    net-tools \
-    python2.7 \
-    python-dev \
-    python-pip \
-    python-crypto \
-    python-mox3 \
-    python-pil \
-    python-ply \
-    quilt \
-    tar \
-    tk-dev \
-    xz-utils \
-    zlib1g-dev
+    python
 
 BUILD=/root/build
 mkdir $BUILD
 
 tooltool_fetch() {
     cat >manifest.tt
-    python $BUILD/tooltool.py fetch
+    python2.7 $BUILD/tooltool.py fetch
     rm manifest.tt
 }
 
 curl https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py > ${BUILD}/tooltool.py
 
 # Install Mercurial from custom debs since distro packages tend to lag behind.
 cd $BUILD
 tooltool_fetch <<EOF