2020-06-04 19:51:02 +00:00
|
|
|
FROM debian:stretch
|
2020-06-04 18:56:10 +00:00
|
|
|
|
2020-06-04 19:52:43 +00:00
|
|
|
LABEL maintainer="ovsyannikov.alexey95@gmail.com"
|
|
|
|
|
2020-06-04 18:56:10 +00:00
|
|
|
USER root
|
|
|
|
|
2020-06-23 14:27:18 +00:00
|
|
|
RUN apt update && apt -y install wget gnupg2 openjdk-8-jdk zip unzip curl sudo git software-properties-common pass
|
2020-06-04 18:56:10 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /var/jenkins_home/jenkins && cd /var/jenkins_home/ &&\
|
2020-09-22 19:05:55 +00:00
|
|
|
wget http://mirrors.jenkins.io/war-stable/2.249.1/jenkins.war &&\
|
2020-06-04 18:56:10 +00:00
|
|
|
chown 1000:1000 jenkins.war
|
|
|
|
|
|
|
|
RUN useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins && chown -R jenkins:jenkins /var/jenkins_home &&\
|
|
|
|
chmod 777 /tmp
|
|
|
|
|
|
|
|
VOLUME /var/jenkins_home/jenkins
|
|
|
|
|
|
|
|
RUN chown -R 1000:1000 /var/jenkins_home
|
|
|
|
|
|
|
|
USER 1000
|
|
|
|
|
|
|
|
ENTRYPOINT /var/jenkins_home/run
|