From a0f0eb5280babf806f95113f950ddb417079e37c Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Mar 2024 16:11:45 -0500 Subject: [PATCH] build: Added docker-stop make entry --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 95502c9..f1bc916 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,11 @@ build-dev: docker-local: build-dev docker build --tag chhoto-url --build-arg TARGETARCH=amd64 -f Dockerfile.multiarch . -docker-test: docker-local +docker-stop: docker ps -q --filter "name=chhoto-url" | xargs -r docker stop docker ps -aq --filter "name=chhoto-url" | xargs -r docker rm + +docker-test: docker-local docker-stop docker run -p 4567:4567 --name chhoto-url -e password="${PASSWORD}" -d chhoto-url docker logs chhoto-url -f @@ -40,4 +42,4 @@ clean: docker ps -aq --filter "name=chhoto-url" | xargs -r docker rm cargo clean --manifest-path=actix/Cargo.toml -.PHONY: build-dev docker-local build-release +.PHONY: build-dev docker-local docker-stop build-release