dockerfiles/jenkins-dind/Dockerfile

26 lines
600 B
Text
Raw Permalink Normal View History

2015-06-02 20:37:23 +02:00
FROM jenkins:latest
2015-06-05 16:38:20 +02:00
MAINTAINER encrypt <encrypt@labr.xyz>
2015-06-02 20:37:23 +02:00
USER root
# Let's start with some basic stuff.
RUN apt-get update -qq && apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables
# Install Docker from Docker Inc. repositories.
RUN curl -sSL https://get.docker.com/ubuntu/ | sh
# Install the magic wrapper.
ADD ./wrapdocker /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
# Add jenkins user to docker group
RUN gpasswd -a jenkins docker
# Define additional metadata for our image.
VOLUME /var/lib/docker
CMD ["wrapdocker"]