mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-06 11:52:10 +02:00
Template generation of docker compose files
This commit is contained in:
parent
dc6ca7c0eb
commit
356cf17390
28 changed files with 2621 additions and 2043 deletions
14
Makefile
14
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# VERSION=$(shell git describe | sed 's/^v//')
|
||||
VERSION=0.5.9
|
||||
VERSION=0.6.0
|
||||
|
||||
all: container
|
||||
|
||||
|
|
@ -28,4 +28,14 @@ clean:
|
|||
rm -rf wheels/
|
||||
|
||||
set-version:
|
||||
sed -i 's/trustgraph-flow:[0-9]*\.[0-9]*\.[0-9]*/trustgraph-flow:'${VERSION}'/' docker-compose*.yaml
|
||||
# sed -i 's/trustgraph-flow:[0-9]*\.[0-9]*\.[0-9]*/trustgraph-flow:'${VERSION}'/' docker-compose*.yaml
|
||||
echo '"${VERSION}"' > templates/version.jsonnet
|
||||
|
||||
TEMPLATES=azure bedrock claude cohere mix ollama openai vertexai
|
||||
DCS=$(foreach template,${TEMPLATES},${template:%=docker-compose-%.yaml})
|
||||
|
||||
update-templates: set-version ${DCS}
|
||||
|
||||
docker-compose-%.yaml: templates/docker-compose-%.jsonnet templates/version.jsonnet
|
||||
jsonnet -S ${@:docker-compose-%.yaml=templates/docker-compose-%.jsonnet} > $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue