Skip to content

Preload apps within oe#185

Merged
mike-sul merged 7 commits intomasterfrom
preload-apps-within-oe
Jun 2, 2022
Merged

Preload apps within oe#185
mike-sul merged 7 commits intomasterfrom
preload-apps-within-oe

Conversation

@mike-sul
Copy link
Copy Markdown
Contributor

  • Added params for the OE-builtin App preload to bb-config.
  • Added script to do the OE-builtin App preload
  • Tiny refactoring needed for the OE-builtin App preload.

Comment thread lmp/build.sh Outdated
Comment thread lmp/build.sh Outdated
Comment thread preload-apps.sh
@mike-sul mike-sul force-pushed the preload-apps-within-oe branch from 678b6bf to 2fc4bf2 Compare May 27, 2022 11:29
@mike-sul
Copy link
Copy Markdown
Contributor Author

mike-sul added 7 commits May 27, 2022 15:19
We need two types of Registry clients, `docker` and `skopeo` while the
functionality to communicate/deal with Registries is the same.
Therefore, we parameterize a client type for this functionality.
- Use `skopeo` client instead of `docker` to login to Registry
  if the skopeo fetcher is used.

- Don't create additional `target` subdirectory so we get Target
  specific OCI store file/folder tree.

- Add insecure-policy` param to `skopeo copy` cmd in order to avoid a
  need in `/etc/containers/policy.json` file, which contains the same
  insecure policies by default.
- Python script to preload Apps within OE build.
- Auxiliary bash script that invokes the preload python script aimed to
  simplify the preloading running and debugging within container and OE.
Use a temporal file for authentication material in order to avoid a need
in access to `/run/containers` folder during the OE builtin preloading.
The OE-builtin preloader supports only "restorable" type of Apps,
therefore we need to pass the corrsponding param to the bitbake context.
@mike-sul mike-sul force-pushed the preload-apps-within-oe branch from 1a723e5 to 321c051 Compare May 27, 2022 13:19
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread preload_apps.py
@mike-sul mike-sul merged commit f7e8299 into master Jun 2, 2022
@mike-sul mike-sul deleted the preload-apps-within-oe branch June 2, 2022 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants