diff --git a/build.py b/build.py index f9c398e..2aa8ee5 100644 --- a/build.py +++ b/build.py @@ -170,8 +170,16 @@ def build_managed(output_dir: Path, cfg_name: str, config: dict): if copy_repo(source, target): log.info(f" {repo_name}/") - # Copy ctrl from cfg//ctrl/ room_cfg = SPR_ROOT / "cfg" / cfg_name + + # Docker files from room root -> managed root + for item in room_cfg.iterdir(): + if item.is_file() and ( + item.name.startswith("Dockerfile") or item.name.startswith("docker-compose") + ): + copy_path(item, managed_dir / item.name) + + # Scripts from ctrl/ -> managed/ctrl/ room_ctrl = room_cfg / "ctrl" if room_ctrl.exists(): ctrl_dir = managed_dir / "ctrl" diff --git a/cfg/amar/ctrl/Dockerfile.backend b/cfg/amar/Dockerfile.backend similarity index 100% rename from cfg/amar/ctrl/Dockerfile.backend rename to cfg/amar/Dockerfile.backend diff --git a/cfg/amar/ctrl/Dockerfile.frontend b/cfg/amar/Dockerfile.frontend similarity index 100% rename from cfg/amar/ctrl/Dockerfile.frontend rename to cfg/amar/Dockerfile.frontend diff --git a/cfg/amar/ctrl/docker-compose.managed.yml b/cfg/amar/docker-compose.yml similarity index 100% rename from cfg/amar/ctrl/docker-compose.managed.yml rename to cfg/amar/docker-compose.yml