The user can’t install a Dev Env that requires a tool image located in a registry, which is not added to DEM. Meaning, for example, if someone would like to install a Dev Env from axem’s open catalog, they also must add the registries that are not yet added.
How to reproduce the issue
Add the crops repository:
dem add-reg crops https://registry.hub.docker.com
Create a new Dev Env:
dem create yocto
From the Tool list select an image. (E.g. crops/poky:ubuntu-22.04)
Save the Dev Env
Delete the crops repo:
dem del-reg crops
Install the Dev Env:
dem install yocto
Now you should see the following error:
Platform error: The crops/poky:ubuntu-22.04 image is not available.
Output of dem info yocto:
When trying to modify the Dev Env (dem modify yocto):
The crops/poky:ubuntu-22.04 is not available anymore.
By continuing, the missing tool images will be removed from the Development Environment. [y/N]:
Expectations
Make it possible to install the Dev Env without the catalogs
This is possible because Dev Env descriptors contain the registries where the images are stored.
This approach is problematic though, because if the user would like to modify the Dev Env, all the required images with repositories not added to DEM will report an error.
The solution for this problem: When the user tries to modify a Dev Env that requires images from unknown registries, DEM should ask the user if they want to add it or not. (This should be implemented in another issue.)
The user should be able to install the Dev Env even if a repo is not added. However, this should be noted as a warning.
Problem description
The user can’t install a Dev Env that requires a tool image located in a registry, which is not added to DEM. Meaning, for example, if someone would like to install a Dev Env from axem’s open catalog, they also must add the registries that are not yet added.
How to reproduce the issue
Add the
crops
repository:dem add-reg crops https://registry.hub.docker.com
Create a new Dev Env:
dem create yocto
Delete the
crops
repo:dem del-reg crops
Install the Dev Env:
dem install yocto
Now you should see the following error: Platform error: The crops/poky:ubuntu-22.04 image is not available.
Output of
dem info yocto
:When trying to modify the Dev Env (
dem modify yocto
):The crops/poky:ubuntu-22.04 is not available anymore. By continuing, the missing tool images will be removed from the Development Environment. [y/N]:
Expectations
Make it possible to install the Dev Env without the catalogs
This is possible because Dev Env descriptors contain the registries where the images are stored.
This approach is problematic though, because if the user would like to modify the Dev Env, all the required images with repositories not added to DEM will report an error.
The solution for this problem: When the user tries to modify a Dev Env that requires images from unknown registries, DEM should ask the user if they want to add it or not. (This should be implemented in another issue.)
The user should be able to install the Dev Env even if a repo is not added. However, this should be noted as a warning.
For axem internal use only: Jira: https://axem.atlassian.net/browse/DEM-283