mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
* Switching from docker compose to abstract form - should be easier to k8s later * Text loader util * Recreate templates
64 lines
1.7 KiB
Jsonnet
64 lines
1.7 KiB
Jsonnet
local base = import "base/base.jsonnet";
|
|
local images = import "values/images.jsonnet";
|
|
local url = import "values/url.jsonnet";
|
|
local cassandra_hosts = "cassandra";
|
|
local cassandra = import "stores/cassandra.jsonnet";
|
|
|
|
cassandra + {
|
|
|
|
"store-triples" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("store-triples")
|
|
.with_image(images.trustgraph)
|
|
.with_command([
|
|
"triples-write-cassandra",
|
|
"-p",
|
|
url.pulsar,
|
|
"-g",
|
|
cassandra_hosts,
|
|
])
|
|
.with_limits("0.5", "128M")
|
|
.with_reservations("0.1", "128M");
|
|
|
|
local containerSet = engine.containers(
|
|
"stop-triples", [ container ]
|
|
);
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
])
|
|
|
|
},
|
|
|
|
"query-triples" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local container =
|
|
engine.container("query-triples")
|
|
.with_image(images.trustgraph)
|
|
.with_command([
|
|
"triples-query-cassandra",
|
|
"-p",
|
|
url.pulsar,
|
|
"-g",
|
|
cassandra_hosts,
|
|
])
|
|
.with_limits("0.5", "512M")
|
|
.with_reservations("0.1", "512M");
|
|
|
|
local containerSet = engine.containers(
|
|
"query-triples", [ container ]
|
|
);
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|