File tree Expand file tree Collapse file tree 7 files changed +104
-1
lines changed Expand file tree Collapse file tree 7 files changed +104
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ language: bash
2
2
services : docker
3
3
4
4
env :
5
+ - VERSION=17.03-rc VARIANT=
5
6
- VERSION=1.13 VARIANT=
6
7
- VERSION=1.12 VARIANT=
7
8
- VERSION=1.12 VARIANT=experimental
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.5
2
+
3
+ RUN apk add --no-cache \
4
+ ca-certificates \
5
+ curl \
6
+ openssl
7
+
8
+ ENV DOCKER_BUCKET test.docker.com
9
+ ENV DOCKER_VERSION 17.03.0-ce-rc1
10
+ ENV DOCKER_SHA256 4ba6482ff22ddfcf31019c831c8363f309c2c3cf8046d54b53a07e10edf19e47
11
+
12
+ RUN set -x \
13
+ && curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz \
14
+ && echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
15
+ && tar -xzvf docker.tgz \
16
+ && mv docker/* /usr/local/bin/ \
17
+ && rmdir docker \
18
+ && rm docker.tgz \
19
+ && docker -v
20
+
21
+ COPY docker-entrypoint.sh /usr/local/bin/
22
+
23
+ ENTRYPOINT ["docker-entrypoint.sh" ]
24
+ CMD ["sh" ]
Original file line number Diff line number Diff line change
1
+ FROM docker:17.03-rc
2
+
3
+ # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
4
+ RUN apk add --no-cache \
5
+ btrfs-progs \
6
+ e2fsprogs \
7
+ e2fsprogs-extra \
8
+ iptables \
9
+ xfsprogs \
10
+ xz
11
+
12
+ # TODO aufs-tools
13
+
14
+ # set up subuid/subgid so that "--userns-remap=default" works out-of-the-box
15
+ RUN set -x \
16
+ && addgroup -S dockremap \
17
+ && adduser -S -G dockremap dockremap \
18
+ && echo 'dockremap:165536:65536' >> /etc/subuid \
19
+ && echo 'dockremap:165536:65536' >> /etc/subgid
20
+
21
+ ENV DIND_COMMIT 3b5fac462d21ca164b3778647420016315289034
22
+
23
+ RUN wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \
24
+ && chmod +x /usr/local/bin/dind
25
+
26
+ COPY dockerd-entrypoint.sh /usr/local/bin/
27
+
28
+ VOLUME /var/lib/docker
29
+ EXPOSE 2375
30
+
31
+ ENTRYPOINT ["dockerd-entrypoint.sh" ]
32
+ CMD []
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ # no arguments passed
5
+ # or first arg is `-f` or `--some-option`
6
+ if [ " $# " -eq 0 -o " ${1# -} " != " $1 " ]; then
7
+ # add our default arguments
8
+ set -- dockerd \
9
+ --host=unix:///var/run/docker.sock \
10
+ --host=tcp://0.0.0.0:2375 \
11
+ --storage-driver=vfs \
12
+ " $@ "
13
+ fi
14
+
15
+ if [ " $1 " = ' dockerd' ]; then
16
+ # if we're running Docker, let's pipe through dind
17
+ # (and we'll run dind explicitly with "sh" since its shebang is /bin/bash)
18
+ set -- sh " $( which dind) " " $@ "
19
+ fi
20
+
21
+ exec " $@ "
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ # first arg is `-f` or `--some-option`
5
+ if [ " ${1# -} " != " $1 " ]; then
6
+ set -- docker " $@ "
7
+ fi
8
+
9
+ # if our command is a valid Docker subcommand, let's invoke it through Docker instead
10
+ # (this allows for "docker run docker ps", etc)
11
+ if docker help " $1 " > /dev/null 2>&1 ; then
12
+ set -- docker " $@ "
13
+ fi
14
+
15
+ # if we have "--link some-docker:docker" and not DOCKER_HOST, let's set DOCKER_HOST automatically
16
+ if [ -z " $DOCKER_HOST " -a " $DOCKER_PORT_2375_TCP " ]; then
17
+ export DOCKER_HOST=' tcp://docker:2375'
18
+ fi
19
+
20
+ exec " $@ "
Original file line number Diff line number Diff line change
1
+ FROM docker:17.03-rc
2
+
3
+ RUN apk add --no-cache \
4
+ git \
5
+ openssh-client
Original file line number Diff line number Diff line change 3
3
4
4
declare -A aliases=(
5
5
[1.13]=' 1 latest'
6
- [1.14 -rc]=' rc'
6
+ [17.03 -rc]=' rc'
7
7
)
8
8
9
9
self=" $( basename " $BASH_SOURCE " ) "
You can’t perform that action at this time.
0 commit comments