mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
* Added a config to create Minikube k8s, uses hostpath volumes * Reworked templater to produce docker compose and minikube output * Fix config templates
19 lines
417 B
Jsonnet
19 lines
417 B
Jsonnet
|
|
local engine = import "engine/docker-compose.jsonnet";
|
|
local components = import "components.jsonnet";
|
|
|
|
// Options
|
|
local options = std.split(std.extVar("options"), ",");
|
|
|
|
// Produce patterns from config
|
|
local patterns = std.foldl(
|
|
function(state, p) state + components[p],
|
|
options,
|
|
{}
|
|
);
|
|
|
|
// Extract resources usnig the engine
|
|
local resources = engine.package(patterns);
|
|
|
|
std.manifestYamlDoc(resources)
|
|
|