removed old VOL Style from portainer script

This commit is contained in:
2025-11-26 20:13:05 -08:00
parent 52f1705324
commit 218715f121
2 changed files with 15 additions and 1998 deletions
+15 -1
View File
@@ -265,11 +265,24 @@ def main():
continue
if item.name.endswith(("_dev", "_notes")):
continue
if not (item / "docker-compose.yml").exists():
compose_path = item / "docker-compose.yml"
if not compose_path.exists():
continue
# ---------------------------------------------
# Skip stacks still using ${VOL_PATH
# ---------------------------------------------
compose_text = compose_path.read_text()
if "${VOL_PATH" in compose_text:
continue
# ---------------------------------------------
# Generate Portainer template object
# ---------------------------------------------
templates.append(generate_template_object(item, nologo=True))
# Write output file
output_data = {
"version": "3",
"templates": templates
@@ -278,5 +291,6 @@ def main():
OUTPUT_FILE.write_text(json.dumps(output_data, indent=2))
print(f"Generated {OUTPUT_FILE} with templates for Docker Compose stacks.")
if __name__ == "__main__":
main()
-1997
View File
File diff suppressed because it is too large Load Diff