forked from meAmidos/dcind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 1.06 KB
/
Copy pathDockerfile
File metadata and controls
32 lines (27 loc) · 1.06 KB
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
# Inspired by https://github.com/mumoshu/dcind
FROM alpine:3.7
MAINTAINER Dmitry Matrosov <amidos@amidos.me>
ENV DOCKER_VERSION=17.05.0-ce \
DOCKER_COMPOSE_VERSION=1.18.0 \
ENTRYKIT_VERSION=0.4.0
# Install Docker and Docker Compose
RUN apk --update --no-cache \
add curl device-mapper py-pip iptables && \
rm -rf /var/cache/apk/* && \
curl https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz | tar zx && \
mv /docker/* /bin/ && chmod +x /bin/docker* && \
pip install docker-compose==${DOCKER_COMPOSE_VERSION}
# Install entrykit
RUN curl -L https://github.com/progrium/entrykit/releases/download/v${ENTRYKIT_VERSION}/entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz | tar zx && \
chmod +x entrykit && \
mv entrykit /bin/entrykit && \
entrykit --symlink
# Include useful functions to start/stop docker daemon in garden-runc containers in Concourse CI.
# Example: source /docker-lib.sh && start_docker
COPY docker-lib.sh /docker-lib.sh
ENTRYPOINT [ \
"switch", \
"shell=/bin/sh", "--", \
"codep", \
"/bin/docker daemon" \
]