From 53506771c42e0456ee909aa8e0a589233fd1f1ef Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Thu, 6 Oct 2022 16:00:10 +0530 Subject: Add make targets to start / stop the podman VM This is just a convenience wrapper for me --- server/test/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/test/Makefile b/server/test/Makefile index 12b18ec..303b9a1 100644 --- a/server/test/Makefile +++ b/server/test/Makefile @@ -20,6 +20,19 @@ all: docker/test test: docker/test check: docker/test +# Create the Podman VM, if it hasn't already been created +create-vm: + podman machine init --cpus 8 --memory 8192 --disk-size 50 || exit 0 + +# Start Podman, if it isn't running +start-vm: create-vm + podman machine start || exit 0 + touch .$@ + +# Stop Podman +stop-vm: + podman machine stop + # Create the Dockerfile docker/%.Dockerfile: docker/templates/%.Dockerfile.in \ docker/templates/Dockerfile.common.in -- cgit v1.0