From 41f6db5de0475239c8d50c79d63493813ad79bee Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Fri, 6 Sep 2024 14:42:31 -0700 Subject: [PATCH] Add Makefile to push mrva agent container image --- cmd/agent/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cmd/agent/Makefile diff --git a/cmd/agent/Makefile b/cmd/agent/Makefile new file mode 100644 index 0000000..a7ba376 --- /dev/null +++ b/cmd/agent/Makefile @@ -0,0 +1,21 @@ +all: mrva-agent + +MAI_TARGET := mrva-agent:0.1.24 +mai: mrva-agent +mrva-agent: + cd ../../ && docker build -t mrva-agent:0.1.24 -f cmd/agent/Dockerfile . + touch $@ + +mai-serve: mai + docker run --rm -it ${MAI_TARGET} /bin/bash + +clean: + -docker rmi -f ${MAI_TARGET} + -rm mrva-agent + +mai-push: mai + docker tag ${MAI_TARGET} ghcr.io/hohn/${MAI_TARGET} + docker push ghcr.io/hohn/${MAI_TARGET} + touch $@ + +