mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Use hyperkit and slirp from Docker for Mac install if available
Save some downloading as the user probably has these installed already; still fall back if not found to downloading from CI. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
40fb18a4cc
commit
aff2b5f514
11
Makefile
11
Makefile
@ -36,14 +36,25 @@ qemu-gce: alpine/gce.img.tar.gz
|
||||
bin:
|
||||
mkdir -p $@
|
||||
|
||||
DOCKER_HYPERKIT=/Applications/Docker.app/Contents/MacOS/com.docker.hyperkit
|
||||
DOCKER_SLIRP=/Applications/Docker.app/Contents/MacOS/com.docker.slirp
|
||||
|
||||
bin/com.docker.hyperkit: | bin
|
||||
ifneq ("$(wildcard $(DOCKER_HYPERKIT))","")
|
||||
ln -s $(DOCKER_HYPERKIT) $@
|
||||
else
|
||||
curl -fsSL https://circleci.com/api/v1/project/docker/hyperkit/latest/artifacts/0//Users/distiller/hyperkit/build/com.docker.hyperkit > $@
|
||||
chmod a+x $@
|
||||
endif
|
||||
|
||||
bin/com.docker.slirp: | bin
|
||||
ifneq ("$(wildcard $(DOCKER_SLIRP))","")
|
||||
ln -s $(DOCKER_SLIRP) $@
|
||||
else
|
||||
curl -fsSL https://circleci.com/api/v1/project/docker/vpnkit/latest/artifacts/0//Users/distiller/vpnkit/com.docker.slirp.tgz \
|
||||
| tar xz --strip=2 -C $(dir $@) Contents/MacOS/com.docker.slirp
|
||||
touch $@
|
||||
endif
|
||||
|
||||
bin/regextract: | bin
|
||||
curl -fsSL https://circleci.com/api/v1/project/justincormack/regextract/latest/artifacts/0/\$$CIRCLE_ARTIFACTS/darwin/amd64/regextract > $@
|
||||
|
Loading…
Reference in New Issue
Block a user