forked from christopherhein/dcos-jenkins-dind-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
36 lines (31 loc) · 1.1 KB
/
Dockerfile.ubuntu
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
FROM ubuntu:16.04
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y \
apt-transport-https \
build-essential \
bzip2 \
ca-certificates \
curl \
git \
iptables \
jq \
lvm2 \
lxc \
openjdk-8-jdk-headless \
unzip \
zip
# links to commit hashes are listed inside posted Dockerfiles https://hub.docker.com/r/library/docker/
# NOTE: must match engine version that is directly pulled from Alpine's Dockerfile
ENV DIND_COMMIT 3b5fac462d21ca164b3778647420016315289034
# docker
RUN curl -sSL https://get.docker.com | sh
# fetch DIND script
RUN curl -sSL https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind -o /usr/local/bin/dind \
&& chmod a+x /usr/local/bin/dind
COPY ./wrapper.sh /usr/local/bin/wrapper.sh
RUN chmod a+x /usr/local/bin/wrapper.sh
VOLUME /var/lib/docker
ENTRYPOINT []
CMD []