forked from bibinwilson/jenkins-docker-slave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fb2cc7f
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Bibin Wilson <[email protected]> | ||
|
||
# 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"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# jenkins-docker-slave |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
|
||
<servers> | ||
<server> | ||
<id>releases</id> | ||
<username>admin</username> | ||
<password>admin123</password> | ||
</server> | ||
<server> | ||
<id>snapshots</id> | ||
<username>admin</username> | ||
<password>admin123</password> | ||
</server> | ||
|
||
</servers> | ||
</settings> |