Last active
August 23, 2020 05:57
-
-
Save baiyongzhen/8cfdce653b9b140473992e7e29d0c1d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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