aboutsummaryrefslogtreecommitdiff
path: root/examples/example8/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example8/Dockerfile')
-rw-r--r--examples/example8/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/example8/Dockerfile b/examples/example8/Dockerfile
new file mode 100644
index 0000000..fee10e9
--- /dev/null
+++ b/examples/example8/Dockerfile
@@ -0,0 +1,20 @@
+FROM jenkins/jenkins:lts
+
+USER root
+
+RUN apt-get update && apt-get -y install \
+ build-essential \
+ libltdl-dev \
+ sudo \
+ rsync
+
+RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
+
+# Install Plugins
+COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
+RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
+
+# Prevent plugin install banner, we've pre-installed our plugins
+RUN echo 2.0 > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
+
+USER jenkins