From bc392b2678abb1b040a08a0f697d93ff079fe260 Mon Sep 17 00:00:00 2001 From: Daniel Hwang Date: Fri, 1 Jan 2021 16:30:56 -0800 Subject: [PATCH] fix init, bump memory, force clean - xhyve has an issue with the latest boot2docker.iso... see https://github.com/machine-drivers/docker-machine-driver-xhyve/issues/229 - bump init initial memory - force clean --- Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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