You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
5 years ago
|
FROM jenkinsci/blueocean
|
||
|
LABEL maintainer="apotwohd@gmail.com"
|
||
|
|
||
|
# Preps Jenkins directories
|
||
|
USER root
|
||
|
RUN mkdir /var/log/jenkins
|
||
|
RUN mkdir /var/cache/jenkins
|
||
|
RUN chown -R jenkins:jenkins /var/log/jenkins
|
||
|
RUN chown -R jenkins:jenkins /var/cache/jenkins
|
||
|
|
||
|
# Normally we should install docker inside container, but it seems to be working
|
||
|
# without it.
|
||
|
# ATENTION: version MUST be the same as host's docker installation!
|
||
|
ARG VERSION=18.09
|
||
|
RUN curl -fsSL https://get.docker.com -o get-docker.sh | sh
|
||
|
|
||
|
USER jenkins
|
||
|
|
||
|
# Security configuration script
|
||
|
COPY security.groovy /var/jenkins_home/init.groovy.d/security.groovy
|
||
|
|
||
|
# Automatically installs plugins
|
||
|
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
|
||
|
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
|
||
|
|
||
|
# Adds scripts for tool installation
|
||
|
COPY groovy/* /usr/share/jenkins/ref/init.groovy.d/
|
||
|
|
||
|
# Sets defaults
|
||
|
# Gets rid of admin password setup
|
||
|
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false -Xmx8192m"
|
||
|
|
||
|
ENV JENKINS_OPTS="--handlerCountMax=300 --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war"
|