mirror of
https://github.com/InsanusMokrassar/JenkinsDocker.git
synced 2024-11-22 19:03:46 +00:00
rewrite master
This commit is contained in:
parent
ee7b522b5c
commit
0e754c24d9
12
Dockerfile
12
Dockerfile
@ -10,16 +10,14 @@ RUN apt update && apt -y install wget gnupg2 openjdk-8-jdk zip unzip curl sudo g
|
|||||||
|
|
||||||
RUN mkdir -p /var/jenkins_home/jenkins && cd /var/jenkins_home/ &&\
|
RUN mkdir -p /var/jenkins_home/jenkins && cd /var/jenkins_home/ &&\
|
||||||
useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins &&\
|
useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins &&\
|
||||||
chown -R jenkins:jenkins /var/jenkins_home &&\
|
|
||||||
chmod 777 /tmp
|
chmod 777 /tmp
|
||||||
RUN wget http://mirrors.jenkins.io/war-stable/2.277.1/jenkins.war &&\
|
|
||||||
chown 1000:1000 jenkins.war && mv jenkins.war /var/jenkins_home/
|
|
||||||
|
|
||||||
VOLUME /var/jenkins_home/jenkins
|
|
||||||
|
|
||||||
|
ENTRYPOINT /var/jenkins_home/run
|
||||||
COPY ./run /var/jenkins_home/
|
COPY ./run /var/jenkins_home/
|
||||||
RUN chown -R 1000:1000 /var/jenkins_home && chmod +x /var/jenkins_home/run
|
RUN chown -R jenkins:jenkins /var/jenkins_home
|
||||||
|
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
||||||
ENTRYPOINT /var/jenkins_home/run
|
VOLUME /var/jenkins_home/jenkins
|
||||||
|
|
||||||
|
RUN cd /var/jenkins_home/ && wget http://mirrors.jenkins.io/war-stable/2.277.1/jenkins.war
|
||||||
|
Loading…
Reference in New Issue
Block a user