Feature/separate containers (#287)

* Separate containerfiles

* Add push to Makefile

* Update image names in the templates
This commit is contained in:
cybermaggedon 2025-01-28 19:36:05 +00:00 committed by GitHub
parent 6c3d2e7f97
commit edcdc4d59d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 363 additions and 65 deletions

View file

@ -30,7 +30,7 @@ packages: update-package-versions
pypi-upload:
twine upload dist/*-${VERSION}.*
CONTAINER=docker.io/trustgraph/trustgraph-flow
CONTAINER_BASE=docker.io/trustgraph
update-package-versions:
mkdir -p trustgraph-cli/trustgraph
@ -44,11 +44,23 @@ update-package-versions:
echo __version__ = \"${VERSION}\" > trustgraph/trustgraph/trustgraph_version.py
container: update-package-versions
${DOCKER} build -f Containerfile -t ${CONTAINER}:${VERSION} \
--format docker
${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} .
push:
${DOCKER} push ${CONTAINER}:${VERSION}
${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}
clean:
rm -rf wheels/