2020-12-15 22:19:32 +03:00
|
|
|
FROM $DOCKER_IMAGE_PARENT
|
|
|
|
MAINTAINER Tom Ritter <tom@mozilla.com>
|
|
|
|
|
|
|
|
VOLUME /builds/worker/checkouts
|
|
|
|
|
2022-09-01 16:49:15 +03:00
|
|
|
# %include taskcluster/docker/recipes/install-node.sh
|
|
|
|
ADD topsrcdir/taskcluster/docker/recipes/install-node.sh /setup/install-node.sh
|
|
|
|
|
2020-12-15 22:19:32 +03:00
|
|
|
COPY privileged-setup.sh /setup/privileged-setup.sh
|
2021-10-26 17:53:20 +03:00
|
|
|
COPY updatebot-version.sh /setup/updatebot-version.sh
|
2020-12-15 22:19:32 +03:00
|
|
|
COPY setup.sh /builds/worker/setup.sh
|
|
|
|
COPY run.py /builds/worker/run.py
|
|
|
|
COPY hgrc /etc/mercurial/hgrc.d/updatebot.rc
|
|
|
|
|
|
|
|
RUN cd /setup && ./privileged-setup.sh
|
|
|
|
|
|
|
|
ENV HOME /builds/worker
|
|
|
|
ENV SHELL /bin/bash
|
|
|
|
ENV USER worker
|
|
|
|
ENV LOGNAME worker
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
2022-09-14 17:57:54 +03:00
|
|
|
ENV PATH "/builds/worker/go/bin:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/cargo-vet:${PATH}"
|
2020-12-15 22:19:32 +03:00
|
|
|
|
|
|
|
RUN cd /builds/worker && ./setup.sh
|