mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Improve test makefile
This commit is contained in:
parent
5a7ccf88d5
commit
c349d2c994
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user