mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-05 11:22:11 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
43 lines
1.2 KiB
Jsonnet
43 lines
1.2 KiB
Jsonnet
local base = import "base/base.jsonnet";
|
|
local images = import "values/images.jsonnet";
|
|
local url = import "values/url.jsonnet";
|
|
local minio = import "stores/minio.jsonnet";
|
|
local cassandra = import "stores/cassandra.jsonnet";
|
|
|
|
{
|
|
|
|
"librarian" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("librarian")
|
|
.with_image(images.trustgraph_flow)
|
|
.with_command([
|
|
"librarian",
|
|
"-p",
|
|
url.pulsar,
|
|
"--log-level",
|
|
$["log-level"],
|
|
])
|
|
.with_limits("0.5", "256M")
|
|
.with_reservations("0.1", "256M");
|
|
|
|
local containerSet = engine.containers(
|
|
"librarian", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
// Minio and Cassandra are used by the Librarian
|
|
} + minio + cassandra
|
|
|