Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gtunon authored Feb 17, 2017
1 parent fb2cc7f commit b98626d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:14.04
MAINTAINER Bibin Wilson <bibinwilsonn@gmail.com>
FROM maven:3.3.9-jdk-8
MAINTAINER Guiomar Tunon <gtunon@naevatec.com>

# Make sure the package repository is up to date.
RUN apt-get update
Expand All @@ -10,21 +10,17 @@ 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 echo "jenkins:2uS61XUq" | 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

Expand Down

0 comments on commit b98626d

Please sign in to comment.