trustgraph/trustgraph_configurator/templates/1.6/components/configuration.jsonnet
elpresidank 74cc8a4685 Squashed 'ai-context/trustgraph-templates/' content from commit 42a5fd1b
git-subtree-dir: ai-context/trustgraph-templates
git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
2026-04-05 21:09:49 -05:00

50 lines
1.4 KiB
Jsonnet

// This puts the default configuration together. References many things,
// flow classes, a default flow, token costs, prompts, agent tools
local base = import "base/base.jsonnet";
local images = import "values/images.jsonnet";
local url = import "values/url.jsonnet";
{
"init-trustgraph" +: {
create:: function(engine)
local cfgVol = engine.configVolume(
"trustgraph-cfg", "trustgraph",
{
"config.json": importstr "trustgraph/config.json",
}
);
local container =
engine.container("init-trustgraph")
.with_image(images.trustgraph_flow)
.with_command(
[
"tg-init-trustgraph",
"-p",
url.pulsar_admin,
"--config-file",
"/trustgraph/config.json",
]
)
.with_limits("0.5", "128M")
.with_reservations("0.1", "128M")
.with_volume_mount(cfgVol, "/trustgraph/");
local containerSet = engine.containers(
"init-trustgraph", [ container ]
);
engine.resources([
cfgVol,
containerSet,
])
},
}