Skip to content

Commit

Permalink
chore(makefile): add docker run targets
Browse files Browse the repository at this point in the history
  • Loading branch information
archasek committed Feb 7, 2025
1 parent 2a78142 commit b3ea186
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ md-lint: .md-lint ## Lint markdown files
$(CMD_PREFIX) docker run --rm -v $$(pwd):/workdir davidanson/markdownlint-cli2:v0.14.0 "**/*.md"
$(CMD_PREFIX) touch $@


.PHONY: py-Lint
py-lint: ## Lint Python files
$(ECHO_PREFIX) printf " %-12s ./...\n" "[PY LINT]"
Expand All @@ -73,3 +72,13 @@ py-lint: ## Lint Python files
fi
$(CMD_PREFIX) poetry install --all-extras
$(CMD_PREFIX) poetry run pre-commit run --all-files

.PHONY: run-docling-cpu
run-docling-cpu: docling-serve-cpu-image ## Run the docling-serve container with CPU support and assign a container name
$(ECHO_PREFIX) printf "Running docling-serve container with CPU support on port 5001, container named 'docling-serve-cpu'...\n"
$(CMD_PREFIX) docker run -it --name docling-serve-cpu -p 5001:5001 ghcr.io/ds4sd/docling-serve-cpu:main

.PHONY: run-docling-gpu
run-docling-gpu: docling-serve-gpu-image ## Run the docling-serve container with GPU support and assign a container name
$(ECHO_PREFIX) printf "Running docling-serve container with GPU support on port 5001, container named 'docling-serve-gpu'...\n"
$(CMD_PREFIX) docker run -it --name docling-serve-gpu -p 5001:5001 ghcr.io/ds4sd/docling-serve:main

0 comments on commit b3ea186

Please sign in to comment.