-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (27 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM jenkins:latest
MAINTAINER [email protected]
# Debian 8 "Jessie"
ENV JAVA_OPTS -Duser.timezone=America/New_York
# Switch user to root so that we can install apps (jenkins image switches to user "jenkins" in the end)
USER root
RUN apt-get update
# AWS CLI for use in in backups
RUN apt-get install -y python-pip
RUN pip install awscli
# DOCKER
# pinning the docker version to 1.6.2 for now until
# https://github.com/docker/compose/issues/1590
# is resolved
RUN wget -qO- https://get.docker.com/ubuntu/ | sed -r 's/^apt-get install -y lxc-docker$/apt-get install -y lxc-docker-1.6.2/g' | sh
# DOCKER COMPOSE
RUN curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# DOCKER MACHINE
RUN curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_linux-386 > /usr/local/bin/docker-machine
RUN chmod +x /usr/local/bin/docker-machine
# Add jenkins user to the Docker group
RUN gpasswd -a jenkins docker
# ANSIBLE
RUN apt-get install -y ansible
# Switch user back to jenkins
USER jenkins