testing/docker/ubuntu1604-test/Dockerfile
author Gregory Szorc <gps@mozilla.com>
Fri, 05 Aug 2016 09:20:02 -0700
changeset 308684 fe0fc504b4b4743b90cc7b3ffc189bda1420a496
parent 306496 b1bc27d8f8a583ccdbbb05e1dc5829a11118d8af
child 308685 5111fd8cb91d11f1dc174bd9bd2ea0da908d5f89
permissions -rw-r--r--
Bug 1291365 - Specify Ubuntu version in ubuntu1604-test image; r=dustin Without this, we'll use the latest Ubuntu release at image build time! MozReview-Commit-ID: DmUcwKPkL78

FROM          ubuntu:16.04
MAINTAINER    Joel Maher <joel.maher@gmail.com>

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

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