Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote sstate-cache mirror & first kanto migration steps #40

Merged
merged 8 commits into from
Nov 21, 2022

Conversation

mikehaller
Copy link
Contributor

PR also contains some minor fixes and beginning of removing k3s stuff to replace with Kanto-CM, as some of these fixes were necessary to make the build work.

Changing the mirror configuration and DevContainer setup to optionally use a remote sstate-cache and BitBake downloads mirror.

If the GitHub Repository (eg our developer forks) have the following secrets set, the cache will be mounted inside of the DevContainers, so that we can update the remote caches with updated sstate-cache files:

AZURE_MOUNT_POINT="azure-sstate-cache"
AZURE_STORAGE_ACCESS_KEY="<secret>"
AZURE_STORAGE_ACCOUNT="sdvyocto"
AZURE_STORAGE_ACCOUNT_CONTAINER="yocto-sstate-cache"

To use the mirrors, add the "kas/mirrors.yaml" to the kas invocation using the ":" notation:

kas build kas/.config-kirkstone.yaml:kas/mirrors.yaml

This improves the build times dramatically and may save up to 80% of the build time, as long as the remote sstate-caches are kept up to date.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

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

LGTM

@mikehaller mikehaller merged commit 2c799e0 into eclipse-leda:main Nov 21, 2022
@mikehaller mikehaller deleted the sstate-cache branch November 21, 2022 07:06
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.

2 participants