-
Notifications
You must be signed in to change notification settings - Fork 1
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
app: Skip app integrity check if pulled by skopeo #44
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If app and its images are pulled by `skopeo` then we should not expect the app bundle index in a local blob store even if the app manifest includes a reference to the app bundle index. The app bundle index presence in a local blob store is mandatory only if an app is pulled by `composectl`. Signed-off-by: Mike Sul <[email protected]>
Make sure app is loaded from correct app store during running `ps` and `check` command. In case of `ps` command app should be loaded from the store location specified in the `--store` parameter of `composectl` command, hence this is the app store blob provider. In case of `check` command app should be loaded either from: 1. Local app store specified in the `--store` parameter if `--local` parameter is specified; 2. From the blob store specified in the `--source-store-path` parameter; 3. From the remote registry, which is considered as a blob provider. Signed-off-by: Mike Sul <[email protected]>
The app store's blob provider should be used for the app pruning, otherwise app pulled by `skopeo` won't be loadable. Signed-off-by: Mike Sul <[email protected]>
Add `skopeo` to the dev&test image and use it for preloading required images to container registry. Signed-off-by: Mike Sul <[email protected]>
Add an end-to-end test that verifies app installation and start by means of `composectl` if app images are pulled by `skopeo` and app content is pulled in the way as the aklite version <= 92 does. Signed-off-by: Mike Sul <[email protected]>
mike-sul
force-pushed
the
load-app-tree-if-pulled-by-skopeo
branch
2 times, most recently
from
January 10, 2025 10:01
52d92e4
to
db448c2
Compare
Unify instantiation of a source and destination blob providers for all use-cases that require checking whether all app blobs are fetched and installed. Signed-off-by: Mike Sul <[email protected]>
mike-sul
force-pushed
the
load-app-tree-if-pulled-by-skopeo
branch
2 times, most recently
from
January 13, 2025 12:12
3dde8f8
to
52df9fc
Compare
If an app is pulled by "aklite+skopeo" (e.g. aklite v.92) then not all app blobs are fetched to a blob store. Some of them are fetched and stored in a app store and some of them are not fetched at all. This change adjust `composectl check --local` and `composectl install` commands so they does not require all blobs in a blob store if an app is pulled by "aklite+skopeo". Instead, it requires all blobs needed to build an app's Merkle tree, install and run apps. Signed-off-by: Mike Sul <[email protected]>
mike-sul
force-pushed
the
load-app-tree-if-pulled-by-skopeo
branch
from
January 13, 2025 15:22
52df9fc
to
d84a433
Compare
detsch
approved these changes
Jan 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make
composectl
work if app is pulled by "aklite+skopeo".Don't require all app blobs to install and start app if app is pulled by "aklite+skopeo". Require only those blobs that are mandatory to install and start app.
Don't require all app blobs during checking app "locally" in fully offline mode.
Skip app integrity check if app blobs are pulled by "aklite+skopeo".
Added a test to verify the aforementioned use-case.