2019-09-27 22:56:53 +00:00
|
|
|
FROM gluonmesh/build:latest
|
2019-09-26 14:12:09 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
# this is needed to install default-jre-headless in debian slim images
|
|
|
|
RUN mkdir -p /usr/share/man/man1
|
|
|
|
|
2020-04-15 15:56:38 +00:00
|
|
|
RUN apt-get update && apt-get install -y default-jre-headless curl git netcat-openbsd python3 python3-pip qemu-system-x86 iproute2 openssh-client rsync
|
2020-03-22 17:49:22 +00:00
|
|
|
RUN python3 -m pip install jenkins-webapi sphinx sphinx_rtd_theme gluon-qemu-testlab==0.0.5
|
2019-09-26 14:12:09 +00:00
|
|
|
|
|
|
|
# Get docker-compose in the agent container
|
|
|
|
RUN mkdir -p /home/jenkins
|
|
|
|
RUN mkdir -p /var/lib/jenkins
|
|
|
|
RUN mkdir -p /remoting
|
|
|
|
RUN chown gluon /home/jenkins
|
|
|
|
RUN chown gluon /var/lib/jenkins
|
|
|
|
RUN chown gluon /remoting
|
|
|
|
|
|
|
|
# Start-up script to attach the slave to the master
|
|
|
|
ADD slave.py /var/lib/jenkins/slave.py
|
|
|
|
|
|
|
|
USER gluon
|
|
|
|
|
|
|
|
WORKDIR /home/jenkins
|
|
|
|
|
|
|
|
ENV JENKINS_URL "https://build.ffh.zone/"
|
|
|
|
ENV JENKINS_SLAVE_ADDRESS ""
|
|
|
|
ENV SLAVE_EXECUTORS "1"
|
|
|
|
ENV SLAVE_LABELS "docker"
|
|
|
|
ENV SLAVE_WORING_DIR ""
|
|
|
|
ENV CLEAN_WORKING_DIR "true"
|
|
|
|
|
|
|
|
CMD [ "python3", "-u", "/var/lib/jenkins/slave.py" ]
|