Dockerfile (1324B)
1 FROM $DOCKER_IMAGE_PARENT 2 3 ### Add worker user and setup its workspace. 4 RUN mkdir /builds && \ 5 groupadd -g 1000 worker && \ 6 useradd -u 1000 -g 1000 -d /builds/worker -s /bin/bash -m worker && \ 7 mkdir -p /builds/worker/workspace && \ 8 chown -R worker:worker /builds 9 10 # Declare default working folder 11 WORKDIR /builds/worker 12 13 ARG TASKCLUSTER_ROOT_URL 14 ARG DOCKER_IMAGE_PACKAGES 15 RUN /usr/local/sbin/setup_packages.sh $TASKCLUSTER_ROOT_URL $DOCKER_IMAGE_PACKAGES && \ 16 apt-get update && \ 17 apt-get install \ 18 gnupg \ 19 bzip2 \ 20 git \ 21 openssh-client \ 22 python3-pip \ 23 python3-requests \ 24 python3-zstandard \ 25 unzip \ 26 git-lfs \ 27 && /usr/local/sbin/clean_packages.sh $DOCKER_IMAGE_PACKAGES 28 29 # %include taskcluster/scripts/run-task 30 COPY topsrcdir/taskcluster/scripts/run-task /builds/worker/bin/run-task-hg 31 # %include third_party/python/taskcluster_taskgraph/taskgraph/run-task/run-task 32 COPY topsrcdir/third_party/python/taskcluster_taskgraph/taskgraph/run-task/run-task /builds/worker/bin/run-task-git 33 34 # %include third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content 35 ADD topsrcdir/third_party/python/taskcluster_taskgraph/taskgraph/run-task/fetch-content /builds/worker/bin/fetch-content 36 37 RUN pip3 install redo==2.0.4 --break-system-packages