testing/docker/decision/Dockerfile
author Gregory Szorc <gps@mozilla.com>
Fri, 29 Jul 2016 13:50:24 -0700
changeset 307537 ed95bb78b383b92d422d83ff0b26a2aaf087c5d8
parent 306510 8b43386ca744eae3cef985bdfa2209d24cddce09
child 307556 b18ad418cba80522c888d329ae4eb37ab07fb436
permissions -rw-r--r--
Bug 1290531 - Move tooltool.py into shared directory; r=dustin The reason tooltool.py was vendored in testing/docker/decision was because locally built Docker images were using vanilla `docker build` and didn't know about our special Dockerfile syntax to allow the inclusion of images from outside the directory where the Dockerfile was located. Now that locally-built Docker images know of our special Dockerfile syntax, we can include files from anywhere. So, move tooltool.py to a shared directory, away from the decision image. I didn't bump the version of the decision image because there are a few more things I want to do to this image, such as have it use the `checkout-gecko-and-run` script instead of its own script. I think I'll do that in a separate bug, however. MozReview-Commit-ID: 12ze9GJFMJq

FROM          ubuntu:16.04
MAINTAINER    Greg Arndt <garndt@mozilla.com>

# Add worker user
RUN useradd -d /home/worker -s /bin/bash -m worker
RUN mkdir /home/worker/artifacts && chown worker:worker /home/worker/artifacts

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

ADD system-setup.sh /tmp/system-setup.sh
RUN bash /tmp/system-setup.sh

ADD bin /home/worker/bin

ENV PATH /home/worker/bin:$PATH
ENV SHELL /bin/bash
ENV HOME /home/worker

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