2016-05-25 16:32:10 +03:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Andrew Halberstadt <ahalberstadt@mozilla.com>
|
2016-01-07 00:33:30 +03:00
|
|
|
|
|
|
|
RUN useradd -d /home/worker -s /bin/bash -m worker
|
|
|
|
WORKDIR /home/worker
|
|
|
|
|
2016-05-02 02:22:31 +03:00
|
|
|
RUN mkdir /build
|
2016-07-29 23:50:24 +03:00
|
|
|
# %include testing/docker/recipes/tooltool.py
|
|
|
|
ADD topsrcdir/testing/docker/recipes/tooltool.py /build/tooltool.py
|
2016-01-07 00:33:30 +03:00
|
|
|
|
2016-09-28 06:05:54 +03:00
|
|
|
# %include testing/mozharness/external_tools/robustcheckout.py
|
|
|
|
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
|
|
|
|
|
2016-07-20 00:43:25 +03:00
|
|
|
# %include testing/docker/recipes/install-mercurial.sh
|
|
|
|
ADD topsrcdir/testing/docker/recipes/install-mercurial.sh /build/install-mercurial.sh
|
|
|
|
ADD system-setup.sh /tmp/system-setup.sh
|
2016-10-15 10:45:22 +03:00
|
|
|
# %include tools/lint/flake8/flake8_requirements.txt
|
|
|
|
ADD topsrcdir/tools/lint/flake8/flake8_requirements.txt /tmp/flake8_requirements.txt
|
2016-07-20 00:43:25 +03:00
|
|
|
RUN bash /tmp/system-setup.sh
|
2016-05-25 16:32:10 +03:00
|
|
|
|
2016-07-30 06:53:21 +03:00
|
|
|
# %include testing/docker/recipes/run-task
|
|
|
|
ADD topsrcdir/testing/docker/recipes/run-task /home/worker/bin/run-task
|
2016-07-22 00:57:37 +03:00
|
|
|
RUN chown -R worker:worker /home/worker/bin && chmod 755 /home/worker/bin/*
|
|
|
|
|
2016-01-07 00:33:30 +03:00
|
|
|
# Set variable normally configured at login, by the shells parent process, these
|
|
|
|
# are taken from GNU su manual
|
|
|
|
ENV HOME /home/worker
|
|
|
|
ENV SHELL /bin/bash
|
|
|
|
ENV USER worker
|
|
|
|
ENV LOGNAME worker
|
|
|
|
ENV HOSTNAME taskcluster-worker
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
# Set a default command useful for debugging
|
|
|
|
CMD ["/bin/bash", "--login"]
|