2019-04-09 17:56:52 +03:00
|
|
|
FROM ubuntu:18.04
|
2018-01-08 18:14:26 +03:00
|
|
|
MAINTAINER Johan Lorenzo <jlorenzo+tc@mozilla.com>
|
|
|
|
|
|
|
|
RUN mkdir /builds
|
2018-01-03 00:22:36 +03:00
|
|
|
RUN groupadd -g 1000 worker
|
|
|
|
RUN useradd -u 1000 -g 1000 -d /builds/worker -s /bin/bash -m worker
|
2018-01-08 18:14:26 +03:00
|
|
|
|
2019-04-09 17:56:52 +03:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
2018-05-08 19:03:35 +03:00
|
|
|
build-essential \
|
2018-10-19 18:44:47 +03:00
|
|
|
curl \
|
2018-05-08 19:03:35 +03:00
|
|
|
libffi-dev \
|
|
|
|
libfreetype6-dev \
|
2019-04-09 17:56:52 +03:00
|
|
|
libpng-dev \
|
2018-05-08 19:03:35 +03:00
|
|
|
libssl-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt1-dev \
|
|
|
|
pkg-config \
|
|
|
|
python3-dev \
|
2018-10-19 18:44:47 +03:00
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
2019-04-09 17:56:52 +03:00
|
|
|
unzip \
|
|
|
|
&& apt-get clean
|
2018-01-08 18:14:26 +03:00
|
|
|
|
|
|
|
WORKDIR /builds/worker/
|
2018-05-16 19:45:02 +03:00
|
|
|
# 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
|
2019-05-03 16:38:38 +03:00
|
|
|
RUN export revision='49254cd61a4536206651424179a39e846d61d8b1' \
|
2019-04-09 17:56:52 +03:00
|
|
|
&& curl --location "https://github.com/mozilla-releng/mozapkpublisher/archive/$revision.zip" > mozapkpublisher.zip \
|
|
|
|
&& unzip mozapkpublisher.zip \
|
|
|
|
&& mv "mozapkpublisher-$revision" mozapkpublisher \
|
|
|
|
&& rm mozapkpublisher.zip
|
2018-10-19 18:44:47 +03:00
|
|
|
|
|
|
|
WORKDIR /builds/worker/mozapkpublisher
|
2019-04-09 17:56:52 +03:00
|
|
|
RUN pip3 --no-cache-dir install --upgrade pip
|
|
|
|
RUN pip3 --no-cache-dir install --no-deps --require-hashes --requirement requirements.txt
|
|
|
|
RUN pip3 --no-cache-dir install --no-deps --editable .
|
2018-01-08 18:14:26 +03:00
|
|
|
|
|
|
|
RUN chown -R worker:worker /builds/worker
|
|
|
|
|
|
|
|
# Set a default command useful for debugging
|
|
|
|
CMD ["/bin/bash", "--login"]
|