blob: 75834f0bc70686b4b447ed5bebaef839f59b9ee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FROM jenkins-kotlin:latest
USER root
RUN apt-get update && apt-get install -y --no-install-recommends python3-minimal python3-pip unzip \
libx11-6 libxcb1 libxext6 libxrender1 libasound2 pulseaudio \
&& pip3 install --break-system-packages buildbot-worker==4.1.0 || pip3 install buildbot-worker \
&& mkdir -p /worker /run/secrets
COPY start-worker.sh /usr/local/bin/start-worker.sh
RUN chmod +x /usr/local/bin/start-worker.sh \
&& mkdir -p /worker && chown -R jenkins:jenkins /worker
# reuse all toolchain caches from the jenkins era (gradle dists, deps, konan, nodejs)
ENV GRADLE_USER_HOME=/var/jenkins_home/.gradle
ENV BUILDWORKER_WORKDIR=/worker
USER jenkins
ENTRYPOINT ["/usr/local/bin/start-worker.sh"]
|