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