Skip to content

Commit

Permalink
add processing
Browse files Browse the repository at this point in the history
  • Loading branch information
metacoma committed Feb 15, 2024
1 parent 9b85db0 commit e132555
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/jsonnet/processing/dockerfile.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local kap = import "lib/kapitan.libjsonnet";
local inventory = kap.inventory();
local p = inventory.parameters;


{
[processing_name + "/Dockerfile"]: kap.jinja2_template("templates/neomodel/Dockerfile", {
inventory: inventory,
processing: p.mindwm2[processing_name]
}) for processing_name in std.objectFields(p.mindwm2)
}
12 changes: 12 additions & 0 deletions lib/jsonnet/processing/makefile.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local kap = import "lib/kapitan.libjsonnet";
local inventory = kap.inventory();
local p = inventory.parameters;


{
[processing_name + "/Makefile"]: kap.jinja2_template("templates/neomodel/Makefile", {
inventory: inventory,
processing: p.mindwm2[processing_name],
processing_name: processing_name
}) for processing_name in std.objectFields(p.mindwm2)
}
11 changes: 11 additions & 0 deletions lib/jsonnet/processing/processing.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local kap = import "lib/kapitan.libjsonnet";
local inventory = kap.inventory();
local p = inventory.parameters;


{
[processing_name + "/processing.py"]: kap.jinja2_template("templates/neomodel/processing.py", {
inventory: inventory,
processing: p.mindwm2[processing_name]
}) for processing_name in std.objectFields(p.mindwm2)
}
11 changes: 11 additions & 0 deletions lib/jsonnet/processing/requirements.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local kap = import "lib/kapitan.libjsonnet";
local inventory = kap.inventory();
local p = inventory.parameters;


{
[processing_name + "/requirements.txt"]: kap.jinja2_template("templates/neomodel/requirements.txt", {
inventory: inventory,
processing: p.mindwm2[processing_name]
}) for processing_name in std.objectFields(p.mindwm2)
}

0 comments on commit e132555

Please sign in to comment.