-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from dduportal/master
Batch of updates for the image
- Loading branch information
Showing
8 changed files
with
73 additions
and
43 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,6 @@ | ||
tests | ||
README.md | ||
.git | ||
.gitignore | ||
.gitattributes | ||
.DS_Store |
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,2 @@ | ||
# Force checkout as Unix endline style | ||
text eol=lf |
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 @@ | ||
.DS_Store |
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 |
---|---|---|
|
@@ -20,24 +20,34 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
FROM java:8-jdk | ||
MAINTAINER Nicolas De Loof <[email protected]> | ||
FROM openjdk:8-jdk | ||
LABEL MAINTAINER="Nicolas De Loof <[email protected]>" | ||
|
||
ENV HOME /home/jenkins | ||
RUN useradd -c "Jenkins user" -d $HOME -m jenkins | ||
ARG user=jenkins | ||
ARG group=jenkins | ||
ARG uid=1000 | ||
ARG gid=1000 | ||
ARG JENKINS_AGENT_HOME=/home/${user} | ||
|
||
RUN curl --create-dirs -sSLo /usr/share/jenkins/slave.jar http://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/2.52/remoting-2.52.jar \ | ||
&& chmod 755 /usr/share/jenkins \ | ||
&& chmod 644 /usr/share/jenkins/slave.jar | ||
ENV JENKINS_AGENT_HOME ${JENKINS_AGENT_HOME} | ||
|
||
VOLUME /home/jenkins | ||
WORKDIR /home/jenkins | ||
RUN groupadd -g ${gid} ${group} \ | ||
&& useradd -d "${JENKINS_AGENT_HOME}" -u "${uid}" -g "${gid}" -m -s /bin/bash "${user}" | ||
|
||
# setup SSH server | ||
RUN apt-get update && apt-get install -y openssh-server | ||
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config | ||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y openssh-server \ | ||
&& apt-get clean | ||
RUN sed -i 's/#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config | ||
RUN sed -i 's/#RSAAuthentication.*/RSAAuthentication yes/' /etc/ssh/sshd_config | ||
RUN sed -i 's/#PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config | ||
RUN sed -i 's/#SyslogFacility.*/SyslogFacility AUTH/' /etc/ssh/sshd_config | ||
RUN sed -i 's/#LogLevel.*/LogLevel INFO/' /etc/ssh/sshd_config | ||
RUN mkdir /var/run/sshd | ||
|
||
VOLUME "${JENKINS_AGENT_HOME}" "/tmp" "/run" "/var/run" | ||
WORKDIR "${JENKINS_AGENT_HOME}" | ||
|
||
COPY setup-sshd /usr/local/bin/setup-sshd | ||
|
||
EXPOSE 22 | ||
|
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
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
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
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