2022-04-24 21:51:00 +00:00
|
|
|
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/
|
2022-04-24 21:51:00 +00:00
|
|
|
podman build --tag knowyt:$(VERSION) .
|
2022-03-03 09:29:01 +00:00
|
|
|
|
|
|
|
run:
|
2022-04-24 21:51:00 +00:00
|
|
|
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:
|
2022-04-24 21:51:00 +00:00
|
|
|
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:
|
2022-04-24 21:51:00 +00:00
|
|
|
rm -f files/knowyt knowyt-$(VERSION).tar
|