mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
docker: compile from scratch rather than download binaries
A later patch will apply a non-upstream patch to docker. Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
772bb48010
commit
c627c0e643
1
alpine/packages/docker/.gitignore
vendored
1
alpine/packages/docker/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
bin/
|
bin/
|
||||||
|
docker.git
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
all: docker
|
|
||||||
|
|
||||||
DOCKER_VERSION=1.11.0-rc3
|
DOCKER_VERSION=1.11.0-rc3
|
||||||
ARCH?=x86_64
|
ARCH?=x86_64
|
||||||
OS?=Linux
|
OS?=Linux
|
||||||
|
|
||||||
DOCKER_HOST=$(shell if echo "$(DOCKER_VERSION)" | grep -q -- '-rc'; then echo "test.docker.com"; else echo "get.docker.com"; fi)
|
all: bin
|
||||||
docker:
|
|
||||||
|
bin: docker.git
|
||||||
|
(cd docker.git && git fetch origin --tags && git checkout v${DOCKER_VERSION})
|
||||||
|
BIND_DIR=$(shell pwd) make -C docker.git binary
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
if [ "${ARCH}" != "arm" ] ; then curl -f -L -o docker.tgz https://${DOCKER_HOST}/builds/${OS}/${ARCH}/docker-${DOCKER_VERSION}.tgz && tar xzf docker.tgz && mv docker/* bin && rm -rf docker/ docker.tgz; else cp docker-arm bin/docker; fi
|
cp docker.git/bundles/${DOCKER_VERSION}/binary/* bin/
|
||||||
chmod +x bin/*
|
rm -f bin/*.md5
|
||||||
|
rm -f bin/*.sha256
|
||||||
|
|
||||||
|
docker.git:
|
||||||
|
git clone git://github.com/docker/docker.git docker.git
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf bin
|
rm -rf bin
|
||||||
|
Loading…
Reference in New Issue
Block a user