Improve test makefile

This commit is contained in:
Khue Doan 2021-02-15 02:22:59 +07:00
parent 5a7ccf88d5
commit c349d2c994

View File

@ -1,16 +1,21 @@
.POSIX:
NAME = homelab
run:
multipass list | grep homelab \
multipass list | grep $(NAME) \
|| multipass launch \
--cpus 4 \
--mem 8G \
--disk 64G \
--cloud-init ./multipass-cloud-init.yaml \
--name homelab \
--name $(NAME) \
release:20.10
multipass shell homelab
multipass shell $(NAME)
stop:
multipass stop $(NAME)
clean:
multipass delete homelab
multipass delete $(NAME)
multipass purge