2024-07-10 23:20:06 +01:00
|
|
|
|
|
|
|
|
# VERSION=$(shell git describe | sed 's/^v//')
|
2024-10-04 17:28:07 +01:00
|
|
|
|
2024-10-15 00:31:08 +01:00
|
|
|
VERSION=0.0.0
|
2024-07-10 23:20:06 +01:00
|
|
|
|
2024-08-12 17:39:54 +01:00
|
|
|
DOCKER=podman
|
|
|
|
|
|
2026-02-23 15:56:29 +00:00
|
|
|
all: containers
|
2024-07-10 23:20:06 +01:00
|
|
|
|
2024-09-30 20:50:20 +01:00
|
|
|
# Not used
|
|
|
|
|
wheels:
|
2024-10-04 22:12:39 +01:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph/
|
2024-09-30 19:36:09 +01:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-base/
|
|
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-flow/
|
|
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-vertexai/
|
|
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-bedrock/
|
2024-09-30 14:00:29 +01:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-embeddings-hf/
|
2024-09-30 22:20:26 +01:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-cli/
|
2025-03-20 09:29:40 +00:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-ocr/
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-unstructured/
|
2025-07-02 18:19:23 +01:00
|
|
|
pip3 wheel --no-deps --wheel-dir dist trustgraph-mcp/
|
2024-09-30 14:00:29 +01:00
|
|
|
|
2024-10-04 15:47:46 +01:00
|
|
|
packages: update-package-versions
|
2024-09-30 20:50:20 +01:00
|
|
|
rm -rf dist/
|
2025-07-23 21:22:08 +01:00
|
|
|
cd trustgraph && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-base && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-flow && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-vertexai && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-bedrock && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-embeddings-hf && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-cli && python -m build --sdist --outdir ../dist/
|
|
|
|
|
cd trustgraph-ocr && python -m build --sdist --outdir ../dist/
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
cd trustgraph-unstructured && python -m build --sdist --outdir ../dist/
|
2025-07-23 21:22:08 +01:00
|
|
|
cd trustgraph-mcp && python -m build --sdist --outdir ../dist/
|
2024-09-30 20:50:20 +01:00
|
|
|
|
2024-09-30 21:07:18 +01:00
|
|
|
pypi-upload:
|
|
|
|
|
twine upload dist/*-${VERSION}.*
|
|
|
|
|
|
2025-01-28 19:36:05 +00:00
|
|
|
CONTAINER_BASE=docker.io/trustgraph
|
2024-07-10 23:20:06 +01:00
|
|
|
|
2024-09-30 16:38:50 +01:00
|
|
|
update-package-versions:
|
2024-09-30 22:20:26 +01:00
|
|
|
mkdir -p trustgraph-cli/trustgraph
|
2024-10-08 20:33:14 +01:00
|
|
|
mkdir -p trustgraph/trustgraph
|
2024-09-30 19:36:09 +01:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-base/trustgraph/base_version.py
|
|
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-flow/trustgraph/flow_version.py
|
|
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-vertexai/trustgraph/vertexai_version.py
|
|
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-bedrock/trustgraph/bedrock_version.py
|
2024-09-30 16:38:50 +01:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-embeddings-hf/trustgraph/embeddings_hf_version.py
|
2024-09-30 22:20:26 +01:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-cli/trustgraph/cli_version.py
|
2025-03-20 09:29:40 +00:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-ocr/trustgraph/ocr_version.py
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-unstructured/trustgraph/unstructured_version.py
|
2024-10-04 22:12:39 +01:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph/trustgraph/trustgraph_version.py
|
2025-07-02 18:19:23 +01:00
|
|
|
echo __version__ = \"${VERSION}\" > trustgraph-mcp/trustgraph/mcp_version.py
|
2024-09-30 16:38:50 +01:00
|
|
|
|
2026-02-23 15:56:29 +00:00
|
|
|
FORCE:
|
|
|
|
|
|
|
|
|
|
containers: FORCE
|
2025-01-28 19:36:05 +00:00
|
|
|
${DOCKER} build -f containers/Containerfile.base \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-base:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.flow \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-flow:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.bedrock \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-bedrock:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.vertexai \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.hf \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-hf:${VERSION} .
|
2025-03-20 09:29:40 +00:00
|
|
|
${DOCKER} build -f containers/Containerfile.ocr \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-ocr:${VERSION} .
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
${DOCKER} build -f containers/Containerfile.unstructured \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-unstructured:${VERSION} .
|
2025-07-02 18:19:23 +01:00
|
|
|
${DOCKER} build -f containers/Containerfile.mcp \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-mcp:${VERSION} .
|
2025-03-20 09:29:40 +00:00
|
|
|
|
2025-04-22 20:21:38 +01:00
|
|
|
some-containers:
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.base \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-base:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.flow \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-flow:${VERSION} .
|
SPARQL query service (#754)
SPARQL 1.1 query service wrapping pub/sub triples interface
Add a backend-agnostic SPARQL query service that parses SPARQL
queries using rdflib, decomposes them into triple pattern lookups
via the existing TriplesClient pub/sub interface, and performs
in-memory joins, filters, and projections.
Includes:
- SPARQL parser, algebra evaluator, expression evaluator, solution
sequence operations (BGP, JOIN, OPTIONAL, UNION, FILTER, BIND,
VALUES, GROUP BY, ORDER BY, LIMIT/OFFSET, DISTINCT, aggregates)
- FlowProcessor service with TriplesClientSpec
- Gateway dispatcher, request/response translators, API spec
- Python SDK method (FlowInstance.sparql_query)
- CLI command (tg-invoke-sparql-query)
- Tech spec (docs/tech-specs/sparql-query.md)
New unit tests for SPARQL query
2026-04-02 17:21:39 +01:00
|
|
|
# ${DOCKER} build -f containers/Containerfile.unstructured \
|
|
|
|
|
# -t ${CONTAINER_BASE}/trustgraph-unstructured:${VERSION} .
|
2026-01-27 13:48:08 +00:00
|
|
|
# ${DOCKER} build -f containers/Containerfile.vertexai \
|
|
|
|
|
# -t ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION} .
|
2025-08-07 21:36:24 +01:00
|
|
|
# ${DOCKER} build -f containers/Containerfile.mcp \
|
|
|
|
|
# -t ${CONTAINER_BASE}/trustgraph-mcp:${VERSION} .
|
2025-05-07 12:58:32 +01:00
|
|
|
# ${DOCKER} build -f containers/Containerfile.vertexai \
|
|
|
|
|
# -t ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION} .
|
|
|
|
|
# ${DOCKER} build -f containers/Containerfile.bedrock \
|
|
|
|
|
# -t ${CONTAINER_BASE}/trustgraph-bedrock:${VERSION} .
|
2025-04-22 20:21:38 +01:00
|
|
|
|
2025-04-02 13:52:33 +01:00
|
|
|
basic-containers: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.base \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-base:${VERSION} .
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.flow \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-flow:${VERSION} .
|
|
|
|
|
|
2025-03-20 09:29:40 +00:00
|
|
|
container.ocr:
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.ocr \
|
|
|
|
|
-t ${CONTAINER_BASE}/trustgraph-ocr:${VERSION} .
|
2024-07-10 23:20:06 +01:00
|
|
|
|
|
|
|
|
push:
|
2025-01-28 19:36:05 +00:00
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-base:${VERSION}
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-flow:${VERSION}
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-bedrock:${VERSION}
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION}
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-hf:${VERSION}
|
2025-03-20 09:29:40 +00:00
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-ocr:${VERSION}
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-unstructured:${VERSION}
|
2025-07-03 17:00:59 +01:00
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-mcp:${VERSION}
|
2024-07-10 23:20:06 +01:00
|
|
|
|
2025-09-11 12:32:04 +01:00
|
|
|
# Individual container build targets
|
|
|
|
|
container-trustgraph-base: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.base -t ${CONTAINER_BASE}/trustgraph-base:${VERSION} .
|
|
|
|
|
|
|
|
|
|
container-trustgraph-flow: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.flow -t ${CONTAINER_BASE}/trustgraph-flow:${VERSION} .
|
|
|
|
|
|
|
|
|
|
container-trustgraph-bedrock: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.bedrock -t ${CONTAINER_BASE}/trustgraph-bedrock:${VERSION} .
|
|
|
|
|
|
|
|
|
|
container-trustgraph-vertexai: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.vertexai -t ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION} .
|
|
|
|
|
|
|
|
|
|
container-trustgraph-hf: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.hf -t ${CONTAINER_BASE}/trustgraph-hf:${VERSION} .
|
|
|
|
|
|
|
|
|
|
container-trustgraph-ocr: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.ocr -t ${CONTAINER_BASE}/trustgraph-ocr:${VERSION} .
|
|
|
|
|
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
container-trustgraph-unstructured: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.unstructured -t ${CONTAINER_BASE}/trustgraph-unstructured:${VERSION} .
|
|
|
|
|
|
2025-09-11 12:32:04 +01:00
|
|
|
container-trustgraph-mcp: update-package-versions
|
|
|
|
|
${DOCKER} build -f containers/Containerfile.mcp -t ${CONTAINER_BASE}/trustgraph-mcp:${VERSION} .
|
|
|
|
|
|
|
|
|
|
# Individual container push targets
|
|
|
|
|
push-trustgraph-base:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-base:${VERSION}
|
|
|
|
|
|
|
|
|
|
push-trustgraph-flow:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-flow:${VERSION}
|
|
|
|
|
|
|
|
|
|
push-trustgraph-bedrock:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-bedrock:${VERSION}
|
|
|
|
|
|
|
|
|
|
push-trustgraph-vertexai:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-vertexai:${VERSION}
|
|
|
|
|
|
|
|
|
|
push-trustgraph-hf:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-hf:${VERSION}
|
|
|
|
|
|
|
|
|
|
push-trustgraph-ocr:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-ocr:${VERSION}
|
|
|
|
|
|
Add universal document decoder with multi-format support (#705)
Add universal document decoder with multi-format support
using 'unstructured'.
New universal decoder service powered by the unstructured
library, handling DOCX, XLSX, PPTX, HTML, Markdown, CSV, RTF,
ODT, EPUB and more through a single service. Tables are preserved
as HTML markup for better downstream extraction. Images are
stored in the librarian but excluded from the text
pipeline. Configurable section grouping strategies
(whole-document, heading, element-type, count, size) for non-page
formats. Page-based formats (PDF, PPTX, XLSX) are automatically
grouped by page.
All four decoders (PDF, Mistral OCR, Tesseract OCR, universal)
now share the "document-decoder" ident so they are
interchangeable. PDF-only decoders fetch document metadata to
check MIME type and gracefully skip unsupported formats.
Librarian changes: removed MIME type whitelist validation so any
document format can be ingested. Simplified routing so text/plain
goes to text-load and everything else goes to document-load.
Removed dual inline/streaming data paths — documents always use
document_id for content retrieval.
New provenance entity types (tg:Section, tg:Image) and metadata
predicates (tg:elementTypes, tg:tableCount, tg:imageCount) for
richer explainability.
Universal decoder is in its own package (trustgraph-unstructured)
and container image (trustgraph-unstructured).
2026-03-23 12:56:35 +00:00
|
|
|
push-trustgraph-unstructured:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-unstructured:${VERSION}
|
|
|
|
|
|
2025-09-11 12:32:04 +01:00
|
|
|
push-trustgraph-mcp:
|
|
|
|
|
${DOCKER} push ${CONTAINER_BASE}/trustgraph-mcp:${VERSION}
|
|
|
|
|
|
2024-07-10 23:20:06 +01:00
|
|
|
clean:
|
|
|
|
|
rm -rf wheels/
|
|
|
|
|
|
2024-07-15 19:42:16 +01:00
|
|
|
set-version:
|
2024-08-30 17:47:35 +01:00
|
|
|
echo '"${VERSION}"' > templates/values/version.jsonnet
|
2024-08-13 17:30:59 +01:00
|
|
|
|
2025-03-14 17:47:59 -07:00
|
|
|
TEMPLATES=azure bedrock claude cohere mix llamafile mistral ollama openai vertexai \
|
2024-08-21 16:20:21 +01:00
|
|
|
openai-neo4j storage
|
|
|
|
|
|
2024-08-22 00:19:55 +01:00
|
|
|
DCS=$(foreach template,${TEMPLATES},${template:%=tg-launch-%.yaml})
|
2024-08-13 17:30:59 +01:00
|
|
|
|
2025-03-14 17:47:59 -07:00
|
|
|
MODELS=azure bedrock claude cohere llamafile mistral ollama openai vertexai
|
|
|
|
|
GRAPHS=cassandra neo4j falkordb memgraph
|
2024-08-13 17:30:59 +01:00
|
|
|
|
2024-08-30 17:47:35 +01:00
|
|
|
# tg-launch-%.yaml: templates/%.jsonnet templates/components/version.jsonnet
|
|
|
|
|
# jsonnet -Jtemplates \
|
|
|
|
|
# -S ${@:tg-launch-%.yaml=templates/%.jsonnet} > $@
|
2024-08-13 17:30:59 +01:00
|
|
|
|
2024-08-27 23:37:24 +01:00
|
|
|
# VECTORDB=milvus
|
|
|
|
|
VECTORDB=qdrant
|
|
|
|
|
|
2024-08-30 17:47:35 +01:00
|
|
|
JSONNET_FLAGS=-J templates -J .
|
|
|
|
|
|
2024-09-29 18:13:34 +01:00
|
|
|
# Temporarily going back to how templates were built in 0.9 because this
|
|
|
|
|
# is going away in 0.11.
|
2024-09-05 16:40:47 +01:00
|
|
|
|
2024-09-29 18:13:34 +01:00
|
|
|
update-templates: update-dcs
|
2024-09-09 17:16:50 +01:00
|
|
|
|
2025-07-23 21:22:08 +01:00
|
|
|
JSON_TO_YAML=python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))'
|
2024-09-09 17:16:50 +01:00
|
|
|
|
|
|
|
|
update-dcs: set-version
|
2024-08-25 23:57:30 +01:00
|
|
|
for graph in ${GRAPHS}; do \
|
2024-08-27 23:37:24 +01:00
|
|
|
cm=$${graph},pulsar,${VECTORDB},grafana; \
|
2024-09-09 17:16:50 +01:00
|
|
|
input=templates/opts-to-docker-compose.jsonnet; \
|
2024-09-29 18:13:34 +01:00
|
|
|
output=tg-storage-$${graph}.yaml; \
|
2024-08-25 23:57:30 +01:00
|
|
|
echo $${graph} '->' $${output}; \
|
2024-08-30 17:47:35 +01:00
|
|
|
jsonnet ${JSONNET_FLAGS} \
|
2024-09-09 17:16:50 +01:00
|
|
|
--ext-str options=$${cm} $${input} | \
|
|
|
|
|
${JSON_TO_YAML} > $${output}; \
|
2024-08-25 23:57:30 +01:00
|
|
|
done
|
2024-08-22 21:20:17 +01:00
|
|
|
for model in ${MODELS}; do \
|
|
|
|
|
for graph in ${GRAPHS}; do \
|
2024-09-03 00:09:15 +01:00
|
|
|
cm=$${graph},pulsar,${VECTORDB},embeddings-hf,graph-rag,grafana,trustgraph,$${model}; \
|
2024-09-09 17:16:50 +01:00
|
|
|
input=templates/opts-to-docker-compose.jsonnet; \
|
2024-09-29 18:13:34 +01:00
|
|
|
output=tg-launch-$${model}-$${graph}.yaml; \
|
2024-08-22 21:20:17 +01:00
|
|
|
echo $${model} + $${graph} '->' $${output}; \
|
2024-08-30 17:47:35 +01:00
|
|
|
jsonnet ${JSONNET_FLAGS} \
|
2024-09-09 17:16:50 +01:00
|
|
|
--ext-str options=$${cm} $${input} | \
|
|
|
|
|
${JSON_TO_YAML} > $${output}; \
|
2024-08-22 21:20:17 +01:00
|
|
|
done; \
|
|
|
|
|
done
|
2024-09-07 18:59:38 +01:00
|
|
|
|
2024-09-28 11:55:30 +01:00
|
|
|
docker-hub-login:
|
|
|
|
|
cat docker-token.txt | \
|
2025-01-06 21:45:42 +00:00
|
|
|
${DOCKER} login -u trustgraph --password-stdin registry-1.docker.io
|
2024-09-28 11:55:30 +01:00
|
|
|
|