Skip to content

Instantly share code, notes, and snippets.

@cheinema
Last active August 29, 2015 14:05
Show Gist options
  • Save cheinema/57d135899b10841fb49f to your computer and use it in GitHub Desktop.
Save cheinema/57d135899b10841fb49f to your computer and use it in GitHub Desktop.
Dockerfiles/ubuntu-jenkins-slave
FROM ubuntu:14.04
MAINTAINER Christian Heinemann <ch@chlab.net>
RUN apt-get update
RUN apt-get install -y openssh-server
RUN apt-get install -y openjdk-7-jre-headless
RUN apt-get install -y git-core
# Setup SSH server
RUN mkdir -p /var/run/sshd
RUN adduser --disabled-password jenkins
RUN echo "jenkins:jenkins" | chpasswd
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