From fb2cc7fe4a8c3b6ca0cd5cb2f2171ce7efe9f0d7 Mon Sep 17 00:00:00 2001 From: bibinwilson Date: Fri, 6 May 2016 12:46:53 +0530 Subject: [PATCH] first commit --- Dockerfile | 31 +++++++++++++++++++++++++++++++ README.md | 1 + settings.xml | 19 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 settings.xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e208bc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM ubuntu:14.04 +MAINTAINER Bibin Wilson + +# Make sure the package repository is up to date. +RUN apt-get update +RUN apt-get -y upgrade +RUN apt-get install -y git +# Install a basic SSH server +RUN apt-get install -y openssh-server +RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd +RUN mkdir -p /var/run/sshd + +# Install JDK 7 (latest edition) +RUN apt-get install -y openjdk-7-jdk + +# Add user jenkins to the image +RUN adduser --quiet jenkins +# Set password for the jenkins user (you may want to alter this). +RUN echo "jenkins:jenkins" | chpasswd + +RUN mkdir /home/jenkins/.m2 + +ADD settings.xml /home/jenkins/.m2/ + +RUN chown -R jenkins:jenkins /home/jenkins/.m2/ + +RUN apt-get install -y maven +# Standard SSH port +EXPOSE 22 + +CMD ["/usr/sbin/sshd", "-D"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..549c188 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# jenkins-docker-slave diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..16919c9 --- /dev/null +++ b/settings.xml @@ -0,0 +1,19 @@ + + + + + + releases + admin + admin123 + + + snapshots + admin + admin123 + + + +