Dockerfile (828B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 FROM $DOCKER_IMAGE_PARENT 6 7 VOLUME /builds/worker/checkouts 8 VOLUME /builds/worker/workspace 9 VOLUME /builds/worker/tooltool-cache 10 11 RUN apt-get update && \ 12 apt-get install \ 13 openssh-client 14 15 COPY known_hosts /etc/ssh/ssh_known_hosts 16 COPY hgrc /etc/mercurial/hgrc.d/push-to-try.rc 17 18 RUN su worker -c "hg clone -r 19a77a5d7b2a90ba225cf5015afd1ac44787abec https://hg.mozilla.org/hgcustom/version-control-tools /builds/worker/.mozbuild/version-control-tools" 19 20 # Create directory for scripts to put an hg config in, for configuring ssh 21 RUN mkdir /builds/worker/.config/hg 22 RUN chown -R worker:worker /builds/worker/.config/hg