testing/docker/ubuntu1204-test/Dockerfile
author Gregory Szorc <gps@mozilla.com>
Tue, 02 Aug 2016 12:28:15 -0700
changeset 308681 dba9f54f051241cab84429c8b98ea881f6d982c3
parent 270775 b083ca57314ae0a7448e08ee8ebbb60ba7580171
child 308682 51ac9d25dbe9ca0e7306ab767e59dfeeb77090c5
permissions -rw-r--r--
Bug 1291365 - Install tooltool securely in ubuntu1204-test image; r=dustin More determinism. More security. More reliable. Vendoring. The path to the installed tooltool.py has also been changed to /setup for consistency with other images. MozReview-Commit-ID: JnUS35AyPus

FROM          ubuntu:12.04
MAINTAINER    Jonas Finnemann Jensen <jopsen@gmail.com>

RUN useradd -d /home/worker -s /bin/bash -m worker
WORKDIR /home/worker

# %include testing/docker/recipes/tooltool.py
ADD topsrcdir/testing/docker/recipes/tooltool.py /setup/tooltool.py

# install non-build specific dependencies in a single layer
ADD           system-setup.sh   /tmp/system-setup.sh
RUN           bash /tmp/system-setup.sh

# 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"]