mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
added version and wrapper templates for portainer
This commit is contained in:
@@ -139,7 +139,13 @@ def main():
|
|||||||
|
|
||||||
templates.append(generate_template_object(item))
|
templates.append(generate_template_object(item))
|
||||||
|
|
||||||
OUTPUT_FILE.write_text(json.dumps(templates, indent=2))
|
# Wrap in Portainer top-level object
|
||||||
|
output_data = {
|
||||||
|
"version": "3",
|
||||||
|
"templates": templates
|
||||||
|
}
|
||||||
|
|
||||||
|
OUTPUT_FILE.write_text(json.dumps(output_data, indent=2))
|
||||||
print(f"Generated {OUTPUT_FILE} with templates for Docker Compose stacks.")
|
print(f"Generated {OUTPUT_FILE} with templates for Docker Compose stacks.")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
+3300
-3297
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user