Bug 1459737 - Add missing package dependencies to google-play-strings Dockerfile; r=nalexander a=release
authorGregory Szorc <gps@mozilla.com>
Tue, 08 May 2018 09:03:35 -0700
changeset 473443 52f364abcc85336cf3e4fd8f928d570cc4f409a3
parent 473442 9daae27e0e231f19ee01555972d8d06f682ccd74
child 473444 29b8049f595aec37153495ff4118335051282160
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander, release
bugs1459737
milestone61.0
Bug 1459737 - Add missing package dependencies to google-play-strings Dockerfile; r=nalexander a=release This Dockerfile downloads non-deterministic remote content (by cloning a Git repo) and then executes code from it. Part of that code is executing Python package installs. Since this Docker image was generated, it appears the remote code requires new build dependencies. This commit adds those package dependencies. Not having deterministic Docker image builds is a bug. I'll file a follow-up so we pin the Git commit used for building so this type of failure doesn't occur again.
taskcluster/docker/google-play-strings/Dockerfile
--- a/taskcluster/docker/google-play-strings/Dockerfile
+++ b/taskcluster/docker/google-play-strings/Dockerfile
@@ -1,17 +1,28 @@
 FROM          ubuntu:16.04
 MAINTAINER    Johan Lorenzo <jlorenzo+tc@mozilla.com>
 
 RUN mkdir /builds
 RUN groupadd -g 1000 worker
 RUN useradd -u 1000 -g 1000 -d /builds/worker -s /bin/bash -m worker
 
 RUN apt-get update
-RUN apt-get install --yes git python3-setuptools build-essential libssl-dev libffi-dev python3-dev
+RUN apt-get install -y \
+    build-essential \
+    git \
+    libffi-dev \
+    libfreetype6-dev \
+    libpng12-dev \
+    libssl-dev \
+    libxml2-dev \
+    libxslt1-dev \
+    pkg-config \
+    python3-dev \
+    python3-setuptools
 
 WORKDIR /builds/worker/
 RUN git clone https://github.com/mozilla-releng/mozapkpublisher
 WORKDIR /builds/worker/mozapkpublisher
 # Change hash_for_given_tag to point to a newer tag. For more information, see
 # https://bugzilla.mozilla.org/show_bug.cgi?id=1459980#c3
 RUN git checkout 50750fceb7c0d831cf61cb550af62b2c93e8e755
 RUN python3 setup.py develop