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
--- 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