mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 15:01:00 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
36 lines
888 B
Jsonnet
36 lines
888 B
Jsonnet
local images = import "values/images.jsonnet";
|
|
local url = import "values/url.jsonnet";
|
|
|
|
{
|
|
|
|
"document-decoder" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("pdf-ocr")
|
|
.with_image(images.trustgraph_ocr)
|
|
.with_command([
|
|
"pdf-ocr",
|
|
] + $["pub-sub-args"] + [
|
|
])
|
|
.with_limits("1.0", "512M")
|
|
.with_reservations("0.1", "512M");
|
|
|
|
local containerSet = engine.containers(
|
|
"pdf-ocr", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.internalService(containerSet)
|
|
.with_port(8000, 8000, "metrics");
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|