Skip to content

Commit

Permalink
fix init, bump memory, force clean
Browse files Browse the repository at this point in the history
- xhyve has an issue with the latest boot2docker.iso... see machine-drivers/docker-machine-driver-xhyve#229
- bump init initial memory
- force clean
  • Loading branch information
gnawhleinad committed Jan 2, 2021
1 parent 5bd6f32 commit bc392b2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit bc392b2

Please sign in to comment.