knowyt/podman/Makefile
2022-09-25 17:27:34 +02:00

24 lines
522 B
Makefile

VERSION=latest
info:
@echo available targets:
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
build:
cp ../server/knowyt files/
podman build --tag knowyt:$(VERSION) .
run:
podman run --rm -it -p 32039:32039 -v /home/settel/codes/go/knowyt/server/data/:/data --name knowyt knowyt:$(VERSION)
stop:
podman stop knowyt
save:
rm -f knowyt-$(VERSION).tar
podman save knowyt:$(VERSION) -o knowyt-$(VERSION).tar
cd .. && ls -lh podman/knowyt-$(VERSION).tar
clean:
rm -f files/knowyt knowyt-$(VERSION).tar