-
Notifications
You must be signed in to change notification settings - Fork 15
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
apps: Parse the docker store to obtain layer size and disk usage #285
Conversation
mike-sul
commented
Jul 6, 2023
- Parse the docker store to obtain a size and a disk usage for each App layer (unarchived).
- Store the obtained layer metadata as a CI run artifact. Then, it can be used by the CI publish run to add the layer metadata (disk usage & size) into App manifest.
- The embedded layer metadata can be used by the aklite/update client to determine whether an App update can fit into a device disk.
344ff5f
to
77f78a3
Compare
9b5b60e
to
c97a923
Compare
Each build run generates
The publish download |
App manifest with references to the two layers, the App bundle/blob and the App layers metadata.
|
This is the blob/json posted to Registry and referenced from the App manifest. aklite gets it and does its app update size calculation based on it.
|
@doanac I think it's ready for review along with the compose publish part foundriesio/compose-publish#13. |
3dc5966
to
b78931b
Compare
1. Parse the local docker store in order to gather layers metadata of all built Apps' images. 2. Gather a diff (piece of rootfs) size and disk usage for all Apps' layers per architecture??. 3. Store the gathered layers metadata as a CI artifact. Signed-off-by: Mike <[email protected]>
b78931b
to
4baa574
Compare
1. Download layers metadata of images built by each build run, and merge them into a single dict. 2. Pass the overall Apps' layers metadata to the compose-publish tool. The publish tool extracts metadata of specific App's layers and put them as a second layer/blob into the App manifest. Signed-off-by: Mike <[email protected]>
4baa574
to
8f8a82b
Compare