Template generation of docker compose files

This commit is contained in:
Cyber MacGeddon 2024-08-13 12:33:15 +01:00
parent dc6ca7c0eb
commit 356cf17390
28 changed files with 2621 additions and 2043 deletions

View file

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