Skip to content

Commit

Permalink
makefile entries to start and stop docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepkunhis committed Dec 5, 2024
1 parent 0061fbc commit 2db7829
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,20 @@ megalint: ## Run the mega-linter.

.PHONY: run
run:
poetry run uvicorn src.main:app --reload --port 5010
poetry run uvicorn src.main:app --reload --port 5010

.PHONY: docker-build
docker-build:
docker build -t cir-converter-service .

.PHONY: docker-run
docker-run:
docker run -p 5010:5010 cir-converter-service

.PHONY: docker-compose-up
docker-compose-up:
docker-compose up -d

.PHONY: docker-stop
docker-stop:
docker stop $(shell docker ps -a -q --filter ancestor=eq-cir-converter-service-web && docker ps -a -q --filter ancestor=cir-converter-service)

0 comments on commit 2db7829

Please sign in to comment.