mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-04 21:02:37 +02:00
Generate all YAML files (#24)
* All templates generated, added missing file * Up version
This commit is contained in:
parent
305dda4463
commit
a2ae1d8820
23 changed files with 1819 additions and 1263 deletions
16
Makefile
16
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# VERSION=$(shell git describe | sed 's/^v//')
|
||||
VERSION=0.7.2
|
||||
VERSION=0.7.3
|
||||
|
||||
DOCKER=podman
|
||||
|
||||
|
|
@ -30,7 +30,6 @@ clean:
|
|||
rm -rf wheels/
|
||||
|
||||
set-version:
|
||||
# sed -i 's/trustgraph-flow:[0-9]*\.[0-9]*\.[0-9]*/trustgraph-flow:'${VERSION}'/' docker-compose*.yaml
|
||||
echo '"${VERSION}"' > templates/components/version.jsonnet
|
||||
|
||||
TEMPLATES=azure bedrock claude cohere mix ollama openai vertexai \
|
||||
|
|
@ -38,8 +37,19 @@ TEMPLATES=azure bedrock claude cohere mix ollama openai vertexai \
|
|||
|
||||
DCS=$(foreach template,${TEMPLATES},${template:%=tg-launch-%.yaml})
|
||||
|
||||
update-templates: set-version ${DCS}
|
||||
MODELS=azure bedrock claude cohere ollama openai vertexai
|
||||
GRAPHS=cassandra neo4j
|
||||
|
||||
tg-launch-%.yaml: templates/%.jsonnet templates/components/version.jsonnet
|
||||
jsonnet -S ${@:tg-launch-%.yaml=templates/%.jsonnet} > $@
|
||||
|
||||
update-templates: set-version
|
||||
for model in ${MODELS}; do \
|
||||
for graph in ${GRAPHS}; do \
|
||||
cm=$${graph},cassandra,pulsar,milvus,grafana,trustgraph,$${model}; \
|
||||
input=templates/main.jsonnet; \
|
||||
output=tg-launch-$${model}-$${graph}.yaml; \
|
||||
echo $${model} + $${graph} '->' $${output}; \
|
||||
jsonnet --ext-str options=$${cm} -S $${input} > $${output}; \
|
||||
done; \
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue