Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sirhopcount/e2cc7a0eed7f1e4ead7f to your computer and use it in GitHub Desktop.
Save sirhopcount/e2cc7a0eed7f1e4ead7f to your computer and use it in GitHub Desktop.
# This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node.
FROM datadog/ubuntu:precise
MAINTAINER Ervin Varga <[email protected]>
# Make sure the package repository is up to date.
RUN apt-get update
# Install a basic SSH server
RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd
# Install JDK 7 (latest edition)
RUN apt-get install -y --no-install-recommends 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
# Standard SSH port
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment