Generate all YAML files (#24)

* All templates generated, added missing file

* Up version
This commit is contained in:
cybermaggedon 2024-08-22 21:20:17 +01:00 committed by GitHub
parent 305dda4463
commit a2ae1d8820
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 1819 additions and 1263 deletions

View file

@ -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