eclipse-leda / meta-leda

Yocto / OpenEmbedded Meta-Layers for Eclipse SDV components
https://eclipse-leda.github.io/leda/
Apache License 2.0
8 stars 9 forks source link

Airgapped installation of containers #140

Closed vasilvas99 closed 1 year ago

vasilvas99 commented 1 year ago

We need to be able to install containers in a no-internet environment. The current PR sets-up a mechanism to do so.

Concept

1) Define a new distro-feature and a BitBake variable pointing to the location of the pre-downloaded images in the final distro:

    DISTRO_FEATURES += " airgap-containers"
    PREINSTALLED_CTR_IMAGES_DIR = "/data/var/containers/images"

2) Define a new packagegroup packagegroup-sdv-airgap-containers that includes all the recipes based on the sdv-container-cache bbclass which download and copy the container the tar-files to ${D}/data/var/containers/images. This packagegroup is only included in the sdv-image-data image if the new distro feature is enabled

3) Create a script and systemd oneshot service that get installed as part of the "core package group" only if the distro feature is enabled:

Other

vasilvas99 commented 1 year ago

For discussion: Should the installer script be moved to leda-utils?