Jenkins slave: drop priviliges to gluon user

This commit is contained in:
lemoer 2019-06-19 09:48:21 +02:00 committed by Martin Weinelt
parent 5dc51d58f4
commit e4abd1dabd

View File

@ -11,9 +11,15 @@ RUN pip install jenkins-webapi
# 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