Skip to content

Commit

Permalink
Add make targets to start / stop the podman VM
Browse files Browse the repository at this point in the history
This is just a convenience wrapper for me
  • Loading branch information
vedang committed Oct 6, 2022
1 parent e6d1df4 commit 5350677
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5350677

Please sign in to comment.