Skip to content

Commit

Permalink
chore(makefile): modify run tasks
Browse files Browse the repository at this point in the history
Signed-off-by: archasek <[email protected]>
  • Loading branch information
archasek committed Feb 10, 2025
1 parent f90b3f8 commit 0fce701
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,21 @@ py-lint: ## Lint Python files
$(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
run-docling-cpu: ## Run the docling-serve container with CPU support and assign a container name
$(ECHO_PREFIX) printf " %-12s Removing existing container if it exists...\n" "[CLEANUP]"
$(CMD_PREFIX) docker rm -f docling-serve-cpu 2>/dev/null || true
$(ECHO_PREFIX) printf " %-12s Running docling-serve container with CPU support on port 5001...\n" "[RUN CPU]"
$(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
run-docling-gpu: ## Run the docling-serve container with GPU support and assign a container name
$(ECHO_PREFIX) printf " %-12s Removing existing container if it exists...\n" "[CLEANUP]"
$(CMD_PREFIX) docker rm -f docling-serve-gpu 2>/dev/null || true
$(ECHO_PREFIX) printf " %-12s Running docling-serve container with GPU support on port 5001...\n" "[RUN GPU]"
$(CMD_PREFIX) docker run -it \
--name docling-serve-gpu \
-p 5001:5001 \
ghcr.io/ds4sd/docling-serve:main

0 comments on commit 0fce701

Please sign in to comment.