diff --git a/Makefile b/Makefile index 8921919..ba196c6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,19 @@ +.PHONY: iso +iso: + cd ~/.docker/machine/cache/ && \ + [[ $$(md5sum boot2docker.iso | awk '{print $$1}') != "7be437b191dddfe40d6f9ef85684cce0" ]] && \ + curl -LO https://github.com/boot2docker/boot2docker/releases/download/v19.03.5/boot2docker.iso || \ + true + .PHONY: init -init: - docker-machine create --driver xhyve --xhyve-virtio-9p /Users/gnawhleinad --xhyve-virtio-9p-root / dev +init: iso + docker-machine create \ + --driver xhyve \ + --xhyve-boot2docker-url ~/.docker/machine/cache/boot2docker.iso \ + --xhyve-virtio-9p /Users/gnawhleinad \ + --xhyve-virtio-9p-root / \ + --xhyve-memory-size 2048 \ + dev .PHONY: start start: @@ -9,6 +22,6 @@ start: .PHONY: clean clean: - docker-machine stop dev + docker-machine stop dev || true docker-machine kill dev 2>/dev/null || true docker-machine rm --force dev