Bug 1459737 - Add missing package dependencies to google-play-strings Dockerfile; r=nalexander CLOSED TREE
authorGregory Szorc <gps@mozilla.com>
Tue, 08 May 2018 09:03:35 -0700
changeset 818142 edc68b8681576350499a4c1d3ea85ca10d262b29
parent 818141 288c7384afc5856977cfb614d4a4f5c727742d45
child 818143 ba29ece3ef471c98a4c6fa830b85027610bb8f94
push id116246
push userbmo:tom@mozilla.com
push dateFri, 13 Jul 2018 20:48:08 +0000
reviewersnalexander
bugs1459737
milestone60.1.1
Bug 1459737 - Add missing package dependencies to google-play-strings Dockerfile; r=nalexander CLOSED TREE 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
 RUN python3 setup.py develop
 
 RUN chown -R worker:worker /builds/worker