Jenkins slave: drop priviliges to gluon user
This commit is contained in:
parent
5dc51d58f4
commit
e4abd1dabd
@ -11,10 +11,16 @@ RUN pip install jenkins-webapi
|
|||||||
# Get docker-compose in the agent container
|
# Get docker-compose in the agent container
|
||||||
RUN mkdir -p /home/jenkins
|
RUN mkdir -p /home/jenkins
|
||||||
RUN mkdir -p /var/lib/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
|
# Start-up script to attach the slave to the master
|
||||||
ADD slave.py /var/lib/jenkins/slave.py
|
ADD slave.py /var/lib/jenkins/slave.py
|
||||||
|
|
||||||
|
USER gluon
|
||||||
|
|
||||||
WORKDIR /home/jenkins
|
WORKDIR /home/jenkins
|
||||||
|
|
||||||
ENV JENKINS_URL "https://build.ffh.zone/"
|
ENV JENKINS_URL "https://build.ffh.zone/"
|
||||||
|
Loading…
Reference in New Issue
Block a user