Fix build of Docker container

- rename it `docker-ce` to make it clearer.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-03-13 11:32:37 +00:00
parent 9d8977a367
commit 150bf80954
2 changed files with 4 additions and 2 deletions

View File

@ -33,4 +33,6 @@ RUN set -x \
&& rm docker.tgz \
&& docker -v
COPY . ./
ENTRYPOINT ["/usr/bin/docker-init", "/usr/bin/dockerd"]

View File

@ -1,14 +1,14 @@
.PHONY: tag push
BASE=alpine:3.5
IMAGE=docker
IMAGE=docker-ce
default: push
hash: Dockerfile
DOCKER_CONTENT_TRUST=1 docker pull $(BASE)
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
docker run --entrypoint /bin/sh --rm $(IMAGE):build -c 'cat Dockerfile /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > $@
docker run --entrypoint /bin/sh --rm $(IMAGE):build -c 'cat $^ /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > $@
push: hash
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \