PTU5KAS/kas/plugins
Felix Moessbauer e9032bc278 kas-container: track repo dir when using menu cmd
When using the kas menu command, we need to track the repository
location outside of the kas container as well. This is required to
prepare the environment for a later kas-container build, as the repo
path inside the container is different from the outside one. For that,
the location of KAS_REPO_DIR is passed via an env-var into the container.
There, this value is picked up by the menu plugin and written to the
.config.yaml file as `_source_host_dir`. When running kas-container build,
we check if the .config.yaml file contains this node and set the
KAS_REPO_DIR accordingly. The schema is extended accordingly.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
[Jan: rework _source_dir_host extraction to make it usable for menu as well]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-30 13:29:12 +02:00
..
__init__.py add plugin to dump flattened config 2022-12-13 14:38:41 +01:00
build.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
checkout.py config: Pass context to Config constructor 2021-10-09 15:00:05 +02:00
dump.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
for_all_repos.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
menu.py kas-container: track repo dir when using menu cmd 2023-05-30 13:29:12 +02:00
shell.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00