Skip to content

Instantly share code, notes, and snippets.

@baiyongzhen
Last active August 23, 2020 05:57
Show Gist options
  • Select an option

  • Save baiyongzhen/8cfdce653b9b140473992e7e29d0c1d4 to your computer and use it in GitHub Desktop.

Select an option

Save baiyongzhen/8cfdce653b9b140473992e7e29d0c1d4 to your computer and use it in GitHub Desktop.
FROM jenkins/jenkins:lts
USER root
#
# DOCKER INSTALLATION FOR DEBIAN
#
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh
# RUN usermod -aG docker jenkins
#
# Misc. Tools INSTALLATION
# Python 2, 3 and respective modules,
# jq
#
RUN apt-get update && apt-get install -y python-pip \
&& apt-get install -y python3 python3-setuptools \
&& easy_install3 pip \
&& pip3 install requests \
&& pip3 install six \
&& apt-get install -y python-yaml jq \
&& rm -rf /var/lib/apt/lists/*
#
# Jenkins plugins
#
RUN /usr/local/bin/install-plugins.sh \
windows-slaves \
matrix-auth \
matrix-project \
antisamy-markup-formatter \
script-security \
pipeline-model-declarative-agent \
pipeline-stage-step \
pipeline-input-step \
slack \
git \
blueocean \
ansible-tower
COPY ref /usr/share/jenkins/ref
USER jenkins
ENV JENKINS_USER admin
ENV JENKINS_PASS admin
#
# Skip initial setup
#
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment