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: .POSIX:
NAME = homelab
run: run:
multipass list | grep homelab \ multipass list | grep $(NAME) \
|| multipass launch \ || multipass launch \
--cpus 4 \ --cpus 4 \
--mem 8G \ --mem 8G \
--disk 64G \ --disk 64G \
--cloud-init ./multipass-cloud-init.yaml \ --cloud-init ./multipass-cloud-init.yaml \
--name homelab \ --name $(NAME) \
release:20.10 release:20.10
multipass shell homelab multipass shell $(NAME)
stop:
multipass stop $(NAME)
clean: clean:
multipass delete homelab multipass delete $(NAME)
multipass purge multipass purge