When a given control script is empty, because the current config is
missing a value for said script or is malformed, a script with only
the shebang was written. Change it, so that it now executes true.
Signed-off-by: Enno Tensing <tenno@suij.in>
A container can be created from a name and an image, no other part is
required. Reflect that in the JSON schema, by removing most top-level
required entries. Also remove the hardcoded env-vars from the schema.
Signed-off-by: Enno Tensing <tenno@suij.in>
Add a json-schema generated by www.liquid-technologies.com/online-json-to-schema-converter
modified to remove hard-coded values from the example conifg (like
MySecret1).
Signed-off-by: Enno Tensing <tenno@suij.in>
When creating the env-vars printf is called with arguments in single
quotes to prevent variable and sub-shell expansions. However, only one
single quote was passed as an argument to printf, but two format
specifiers are present in the escpaed string.
Fix this by adding another \"'\" to the variable cmd.
Signed-off-by: Enno Tensing <tenno@suij.in>
As ${TODAY} was forgotten, the first argument from ${@} was used as a
timestamp instead, resulting in malformed log messages. Fix this by
adding ${TDOAY} before ${@}.
Signed-off-by: Enno Tensing <tenno@suij.in>
Use ",".join() instead of the custom join() method and fix
Secret.command() by checking if secret_type and not target is mount...
Signed-off-by: Enno Tensing <tenno@suij.in>
This fixes various issues reported by pylint. It now only reports to
issues, that can be ignored, since they're only about too many local
variables or class attributes.
Signed-off-by: Enno Tensing <tenno@suij.in>
Since the environemt creation are now seperate methods, the create and
create_container split is no longer needed.
Signed-off-by: Enno Tensing <tenno@suij.in>
Add {create,remove}_environment wrappers to the Container class, so that
the generate script can access them.
Signed-off-by: Enno Tensing <tenno@suij.in>
Remove the if ! [ -d {file.parent} ] check from Envrionment.create(), as
the directory has to exists, since the script checking if it exists also
is located in that directort...
Signed-off-by: Enno Tensing <tenno@suij.in>