Bug 1247168 - Stop installing most system packages; r=dustin draft
authorGregory Szorc <gps@mozilla.com>
Wed, 20 Jul 2016 11:59:22 -0700
changeset 392528 5a2b3888b4c54c29bc8c8b9215ce36a4340574e5
parent 392527 0c6f30ff193dba5fbb5d90603e00f8be02816f9d
child 392529 cf73d2741fc186bebf06233efefdf85cd8cea3f2
push id24049
push userbmo:gps@mozilla.com
push dateMon, 25 Jul 2016 19:51:28 +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