-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (17 loc) · 883 Bytes
/
Dockerfile
File metadata and controls
30 lines (17 loc) · 883 Bytes
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
FROM jenkins
USER root
# Install prerequisites
RUN apt-get update && apt-get -y install \
apt-transport-https \
ca-certificates \
make
# Install Docker
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get -y install docker-engine
# Install Docker Compose
ENV DOCKER_COMPOSE_VERSION 1.7.1
RUN curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Set Jenkins content security policy
ENV JAVA_OPTS -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-scripts; default-src \'self\' \'unsafe-inline\' data:;\"