Add Makefile to push mrva server container image

This commit is contained in:
Michael Hohn
2024-09-06 11:40:13 -07:00
committed by =Michael Hohn
parent 1e2df515e3
commit 19330c3a0f

24
cmd/server/Makefile Normal file
View File

@@ -0,0 +1,24 @@
all: mrva-server
MSI_TARGET := mrva-server:0.1.24
msi: mrva-server
mrva-server:
cd ../../ && docker build -t mrva-server:0.1.24 -f cmd/server/Dockerfile .
touch $@
msi-serve: msi
docker run --rm -it ${MSI_TARGET} /bin/bash
clean:
-docker rmi -f ${MSI_TARGET}
-rm mrva-server
msi-push: msi
docker tag ${MSI_TARGET} ghcr.io/hohn/${MSI_TARGET}
docker push ghcr.io/hohn/${MSI_TARGET}
touch $@
msi-test:
docker pull ghcr.io/hohn/${MSI_TARGET}
docker run --rm -it --name test-mrva-server-codeql ghcr.io/hohn/${MSI_TARGET} sh