Last active
October 30, 2019 15:29
-
-
Save BeardedCloudWalker/6818daa9b017fe5c58acbc8c1861466b to your computer and use it in GitHub Desktop.
Jenkins Docker file that can build Docker images
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:2.190.2 | |
# Distributed Builds plugins | |
RUN /usr/local/bin/install-plugins.sh ssh-slaves | |
RUN /usr/local/bin/install-plugins.sh workflow-aggregator | |
RUN /usr/local/bin/install-plugins.sh docker-plugin | |
# install Notifications and Publishing plugins | |
RUN /usr/local/bin/install-plugins.sh email-ext | |
RUN /usr/local/bin/install-plugins.sh mailer | |
RUN /usr/local/bin/install-plugins.sh slack | |
# Artifacts | |
RUN /usr/local/bin/install-plugins.sh htmlpublisher | |
RUN /usr/local/bin/install-plugins.sh amazon-ecr | |
# UI | |
RUN /usr/local/bin/install-plugins.sh greenballs | |
RUN /usr/local/bin/install-plugins.sh simple-theme-plugin | |
RUN /usr/local/bin/install-plugins.sh blueocean | |
RUN /usr/local/bin/install-plugins.sh dashboard-view | |
RUN /usr/local/bin/install-plugins.sh monitoring | |
RUN /usr/local/bin/install-plugins.sh disk-usage | |
RUN /usr/local/bin/install-plugins.sh performance | |
# Scaling | |
RUN /usr/local/bin/install-plugins.sh kubernetes | |
RUN /usr/local/bin/install-plugins.sh amazon-ecs | |
# Docker | |
USER root | |
RUN apt-get update -qq \ | |
&& apt-get install -qqy apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | |
RUN add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
RUN apt-get update -qq \ | |
&& apt-get install docker-ce=17.12.1~ce-0~debian -y | |
RUN usermod -aG docker jenkins | |
# install Maven | |
RUN apt-get update && apt-get install -y maven |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment