testing/docker/centos6-build/Dockerfile
author Wes Kocher <wkocher@mozilla.com>
Thu, 20 Oct 2016 15:59:47 -0700
changeset 361658 861fa708652cac38390be4eac89758ba0286a4a0
parent 361655 taskcluster/docker/centos6-build/Dockerfile@d15798b73b9e3f8226e7d4ac8adfca3a77b069f0
child 361789 806054dd12bdcbdee81dbd75f1583156cef9b649
permissions -rw-r--r--
Backed out changeset d15798b73b9e (bug 1302763) for taskcluster build issues a=backout CLOSED TREE

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