trustgraph/templates/opts-to-docker-compose.jsonnet
cybermaggedon 0ae6feddb0
Added GCP and Minikube output (#59)
* Added a config to create Minikube k8s, uses hostpath volumes
* Reworked templater to produce docker compose and minikube output
* Fix config templates
2024-09-09 17:16:50 +01:00

21 lines
398 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);
resources