1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00

build: Added docker-stop make entry

This commit is contained in:
Sayantan Santra 2024-03-31 16:11:45 -05:00
parent 34518affaf
commit a0f0eb5280
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -13,9 +13,11 @@ build-dev:
docker-local: build-dev docker-local: build-dev
docker build --tag chhoto-url --build-arg TARGETARCH=amd64 -f Dockerfile.multiarch . 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 -q --filter "name=chhoto-url" | xargs -r docker stop
docker ps -aq --filter "name=chhoto-url" | xargs -r docker rm 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 run -p 4567:4567 --name chhoto-url -e password="${PASSWORD}" -d chhoto-url
docker logs chhoto-url -f docker logs chhoto-url -f
@ -40,4 +42,4 @@ clean:
docker ps -aq --filter "name=chhoto-url" | xargs -r docker rm docker ps -aq --filter "name=chhoto-url" | xargs -r docker rm
cargo clean --manifest-path=actix/Cargo.toml cargo clean --manifest-path=actix/Cargo.toml
.PHONY: build-dev docker-local build-release .PHONY: build-dev docker-local docker-stop build-release