mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-10-13 17:08:57 +02:00

Moved and renamed several API documentation files for better organization, updated sidebar positions, and merged image generation docs. Added logging documentation and updated Makefile commands for docs build and serve. Improved clarity and consistency in API doc titles and structure.
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
dev:
|
|
@echo "Setting up dev environment..."
|
|
@command -v pre-commit >/dev/null 2>&1 || { echo "Error: pre-commit is not installed. Please install it first."; exit 1; }
|
|
@command -v docker >/dev/null 2>&1 || { echo "Error: docker is not installed. Please install it first."; exit 1; }
|
|
pre-commit install
|
|
pre-commit autoupdate
|
|
pre-commit install --install-hooks
|
|
|
|
build:
|
|
mvn -B clean install -Dgpg.skip=true
|
|
|
|
full-build:
|
|
mvn -B clean install
|
|
|
|
unit-tests:
|
|
mvn clean test -Punit-tests
|
|
|
|
integration-tests:
|
|
export USE_EXTERNAL_OLLAMA_HOST=false && mvn clean verify -Pintegration-tests
|
|
|
|
integration-tests-remote:
|
|
export USE_EXTERNAL_OLLAMA_HOST=true && export OLLAMA_HOST=http://192.168.29.223:11434 && mvn clean verify -Pintegration-tests -Dgpg.skip=true
|
|
|
|
doxygen:
|
|
doxygen Doxyfile
|
|
|
|
list-releases:
|
|
curl 'https://central.sonatype.com/api/internal/browse/component/versions?sortField=normalizedVersion&sortDirection=desc&page=0&size=20&filter=namespace%3Aio.github.ollama4j%2Cname%3Aollama4j' \
|
|
--compressed \
|
|
--silent | jq -r '.components[].version'
|
|
|
|
docs-build:
|
|
cd ./docs && npm install --prefix && npm run build
|
|
|
|
docs-serve:
|
|
cd ./docs && npm install && npm run start
|
|
|
|
start-cpu:
|
|
docker run -it -v ~/ollama:/root/.ollama -p 11434:11434 ollama/ollama
|
|
|
|
start-gpu:
|
|
docker run -it --gpus=all -v ~/ollama:/root/.ollama -p 11434:11434 ollama/ollama
|