Esempio n. 1
0
    def create(self):
        log.info(f"Reading {file_name} from the repo")

        config = self._load_config()
        config["services"].update(
            yaml.load(importlib.resources.read_text(resources, file_name)))

        log.info("Dumping updated docker-compose config")
        self._dump_config(config)
Esempio n. 2
0
    def create(self):
        log.info(f"Reading {file_name} from the repo")

        config = self._load_config()
        config["services"].update(
            yaml.load(
                importlib.resources.read_text(resources, source_file_name)))

        log.info(f"Adding {Projects.CACHE} to backend dependencies")
        config["services"][Projects.BACKEND]["depends_on"].append(
            Projects.CACHE)

        log.info("Dumping updated docker-compose config")
        self._dump_config(config)
Esempio n. 3
0
 def _load_config(self):
     with open(file_name) as root_config:
         return yaml.load(root_config.read())