Skip to content

Commit

Permalink
feat: add support for mermaid.ink container in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ouhammmourachid committed Nov 25, 2024
1 parent 17c8ac4 commit bd9714f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# variables
POETRY_RUN := poetry run
PRE_COMMIT_CMD := $(POETRY_RUN) pre-commit
MERMAID_INK_CONTAINER := ghcr.io/jihchi/mermaid.ink

.PHONY: install
install:
Expand Down Expand Up @@ -36,11 +37,13 @@ lint:
coverage:
$(POETRY_RUN) pytest --cov ./mermaid --cov-report=xml

.PHONY: mermaid.ink/up
mermaid.ink/up:
docker run -p 3000:3000 -d --cap-add=SYS_ADMIN ghcr.io/jihchi/mermaid.ink
docker run -p 3000:3000 -d --cap-add=SYS_ADMIN $(MERMAID_INK_CONTAINER)

.PHONY: mermaid.ink/down
mermaid.ink/down:
docker stop $(shell docker ps -q --filter ancestor=ghcr.io/jihchi/mermaid.ink)
docker stop $(shell docker ps -q --filter ancestor=$(MERMAID_INK_CONTAINER))

.PHONY: bumpversion
bumpversion:
Expand Down

0 comments on commit bd9714f

Please sign in to comment.