archas commited on
Commit
601c5a2
·
unverified ·
1 Parent(s): cd967c5

chore(makefile): add docker run targets (#32)

Browse files

* chore(makefile): add docker run targets

Signed-off-by: archasek <[email protected]>

* chore(makefile): modify run tasks

Signed-off-by: archasek <[email protected]>

* chore(makefile): modify run tasks

Signed-off-by: archasek <[email protected]>

---------

Signed-off-by: archasek <[email protected]>

Files changed (1) hide show
  1. Makefile +14 -1
Makefile CHANGED
@@ -62,7 +62,6 @@ md-lint: .md-lint ## Lint markdown files
62
  $(CMD_PREFIX) docker run --rm -v $$(pwd):/workdir davidanson/markdownlint-cli2:v0.14.0 "**/*.md"
63
  $(CMD_PREFIX) touch $@
64
 
65
-
66
  .PHONY: py-Lint
67
  py-lint: ## Lint Python files
68
  $(ECHO_PREFIX) printf " %-12s ./...\n" "[PY LINT]"
@@ -73,3 +72,17 @@ py-lint: ## Lint Python files
73
  fi
74
  $(CMD_PREFIX) poetry install --all-extras
75
  $(CMD_PREFIX) poetry run pre-commit run --all-files
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  $(CMD_PREFIX) docker run --rm -v $$(pwd):/workdir davidanson/markdownlint-cli2:v0.14.0 "**/*.md"
63
  $(CMD_PREFIX) touch $@
64
 
 
65
  .PHONY: py-Lint
66
  py-lint: ## Lint Python files
67
  $(ECHO_PREFIX) printf " %-12s ./...\n" "[PY LINT]"
 
72
  fi
73
  $(CMD_PREFIX) poetry install --all-extras
74
  $(CMD_PREFIX) poetry run pre-commit run --all-files
75
+
76
+ .PHONY: run-docling-cpu
77
+ run-docling-cpu: ## Run the docling-serve container with CPU support and assign a container name
78
+ $(ECHO_PREFIX) printf " %-12s Removing existing container if it exists...\n" "[CLEANUP]"
79
+ $(CMD_PREFIX) docker rm -f docling-serve-cpu 2>/dev/null || true
80
+ $(ECHO_PREFIX) printf " %-12s Running docling-serve container with CPU support on port 5001...\n" "[RUN CPU]"
81
+ $(CMD_PREFIX) docker run -it --name docling-serve-cpu -p 5001:5001 ghcr.io/ds4sd/docling-serve-cpu:main
82
+
83
+ .PHONY: run-docling-gpu
84
+ run-docling-gpu: ## Run the docling-serve container with GPU support and assign a container name
85
+ $(ECHO_PREFIX) printf " %-12s Removing existing container if it exists...\n" "[CLEANUP]"
86
+ $(CMD_PREFIX) docker rm -f docling-serve-gpu 2>/dev/null || true
87
+ $(ECHO_PREFIX) printf " %-12s Running docling-serve container with GPU support on port 5001...\n" "[RUN GPU]"
88
+ $(CMD_PREFIX) docker run -it --name docling-serve-gpu -p 5001:5001 ghcr.io/ds4sd/docling-serve:main