knowyt/podman/Makefile

24 lines
522 B
Makefile
Raw Normal View History

VERSION=latest
2022-03-14 21:42:07 +00:00
info:
@echo available targets:
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
2022-03-03 09:29:01 +00:00
build:
cp ../server/knowyt files/
podman build --tag knowyt:$(VERSION) .
2022-03-03 09:29:01 +00:00
run:
podman run --rm -it -p 32039:32039 -v /home/settel/codes/go/knowyt/server/data/:/data --name knowyt knowyt:$(VERSION)
2022-03-03 09:29:01 +00:00
stop:
podman stop knowyt
2022-03-09 08:34:55 +00:00
save:
rm -f knowyt-$(VERSION).tar
podman save knowyt:$(VERSION) -o knowyt-$(VERSION).tar
2022-09-25 15:27:34 +00:00
cd .. && ls -lh podman/knowyt-$(VERSION).tar
2022-03-09 08:34:55 +00:00
2022-03-03 09:29:01 +00:00
clean:
rm -f files/knowyt knowyt-$(VERSION).tar