2024-08-22 00:19:55 +01:00
|
|
|
|
2024-09-09 17:16:50 +01:00
|
|
|
local engine = import "engine/docker-compose.jsonnet";
|
2024-09-05 16:40:47 +01:00
|
|
|
local components = import "components.jsonnet";
|
|
|
|
|
|
|
|
|
|
// Options
|
2024-08-22 00:19:55 +01:00
|
|
|
local options = std.split(std.extVar("options"), ",");
|
|
|
|
|
|
2024-09-05 16:40:47 +01:00
|
|
|
// Produce patterns from config
|
|
|
|
|
local patterns = std.foldl(
|
|
|
|
|
function(state, p) state + components[p],
|
|
|
|
|
options,
|
|
|
|
|
{}
|
|
|
|
|
);
|
2024-08-22 00:19:55 +01:00
|
|
|
|
2024-09-05 16:40:47 +01:00
|
|
|
// Extract resources usnig the engine
|
2024-09-09 17:16:50 +01:00
|
|
|
local resources = engine.package(patterns);
|
|
|
|
|
|
|
|
|
|
resources
|
|
|
|
|
|
2024-08-22 00:19:55 +01:00
|
|
|
|
|
|
|
|
|