mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 10:24:53 +01:00
build
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import yaml
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
stack_name = sys.argv[1]
|
||||
INPUT_FILE = f"{stack_name}/docker-compose.yml"
|
||||
OUTPUT_FILE = f"__swarm/{stack_name}/{stack_name}-swarm.yml"
|
||||
@@ -155,7 +156,8 @@ def convert_compose_to_swarm(data):
|
||||
return data
|
||||
|
||||
def main():
|
||||
fix_env_file(f"__swarm/{stack_name}/stack.env") # NEW FIX STEP
|
||||
if os.path.exists(f"__swarm/{stack_name}/stack.env"):
|
||||
fix_env_file(f"__swarm/{stack_name}/stack.env") # NEW FIX STEP
|
||||
with open(INPUT_FILE, "r") as f:
|
||||
compose = yaml.safe_load(f)
|
||||
#input(compose)
|
||||
|
||||
Reference in New Issue
Block a user