docker_launch.config_parser¶
Parse and format the configuration.
Check if valid keys are defined in configuration file, optionally import other configuration file, then convert a1 - a3 into the list of b1 - b3.
a1. Docker image a2. Command template a3. Individual container configuration
b1. Docker image b2. Full command b3. Machine to run the container
- class ConfigFileParser(config_path)[source]¶
Bases:
object
- Parameters
config_path (Union[PathLike, str]) –
- SpecialTopLevelKeys: List[str] = ['include']¶
- SpecialInTableKeys: List[str] = ['baseimg', 'command', 'targets']¶
- property raw_content: tomlkit.toml_document.TOMLDocument¶
- parse(config_path)¶
- Parameters
config_path (Union[PathLike, str]) –
- Return type
Dict[Hashable, List[Dict[Literal[‘image’, ‘cmd’, ‘machine’], str]]]