feat: implement metadata catalog database management
This commit is contained in:
+10
-2
@@ -21,5 +21,13 @@ if [[ "${THOTH_ENABLE_EMBEDDING_GPU:-0}" == "1" ]]; then
|
||||
compose_files+=(-f "$ROOT/deploy/compose.embedding-gpu.yaml")
|
||||
fi
|
||||
|
||||
exec docker compose --env-file "$LOCAL_ENV_FILE" \
|
||||
"${compose_files[@]}" up --build "$@"
|
||||
compose=(docker compose --env-file "$LOCAL_ENV_FILE" "${compose_files[@]}")
|
||||
|
||||
# Migrations are an explicit one-shot operation, never hidden in backend startup. The local
|
||||
# launcher runs that operation before bringing the foreground stack up so a fresh checkout is
|
||||
# immediately usable while production operators can invoke the same service during rollout.
|
||||
"${compose[@]}" build core
|
||||
"${compose[@]}" up -d catalog-db
|
||||
"${compose[@]}" run --rm catalog-migrate
|
||||
|
||||
exec "${compose[@]}" up --build "$@"
|
||||
|
||||
Reference in New Issue
Block a user