author Ryan VanderMeulen <ryanvm@gmail.com>
Fri, 21 Oct 2016 11:08:45 -0400
changeset 361789 806054dd12bdcbdee81dbd75f1583156cef9b649
parent 358846 c6bd1f367375810ac5aa0a8e4e9fecc9826c11f7
parent 361658 861fa708652cac38390be4eac89758ba0286a4a0
child 371499 0f3603e365f029bc9ea5f926d32f6f0f8aa4d998
permissions -rw-r--r--
Merge m-c to inbound. a=merge

FROM          centos:6
MAINTAINER    Dustin J. Mitchell <dustin@mozilla.com>

### add worker user and setup its workspace
RUN useradd -d /home/worker -s /bin/bash -m worker
# Declare default working folder
WORKDIR       /home/worker

# This will create a host mounted filesystem when the cache is stripped
# on Try. This cancels out some of the performance losses of aufs. See
# bug 1291940.
VOLUME /home/worker/workspace
VOLUME /home/worker/tooltool-cache

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

# Builds need the share module enabled
ADD           hgrc /home/worker/.hgrc
RUN chown -R worker:worker /home/worker/.hgrc

# 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

# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]