rewrite master

This commit is contained in:
InsanusMokrassar 2021-03-12 16:23:35 +06:00
parent ee7b522b5c
commit 0e754c24d9
2 changed files with 5 additions and 7 deletions

View File

@ -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

0
run Normal file → Executable file
View File