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

Add image details and platform details in versions #83

Conversation

JoaoMario109
Copy link
Contributor

@JoaoMario109 JoaoMario109 commented Mar 20, 2024

These details are needed for a cleaner implementation of the fix for bluerobotics/BlueOS#2109

These changes should add something like this in manifest.json

"versions": {
     "0.0.2": {
        ...other existing fileds...
         "images": [
             {
                 "digest": "sha256:75a2bf8947eba791595c30713506e8f94231a656c48f99119c53d17eb09ec74a",
                 "size": 370009641,
                 "platform": {
                      "architecture": "arm64",
                     "variant": null,
                     "os": "linux"
                 }
             },
             {
                 "digest": "sha256:a9a2112b8cc7df5fefab629d79aa50c7cf68f6f205afe5f7fa44ed343072515e",
                 "size": 370009669,
                 "platform": {
                     "architecture": "arm",
                     "variant": "v7",
                     "os": "linux"
                 }
             }
         ]
     },
}

@JoaoMario109 JoaoMario109 force-pushed the add-platform-data-in-versions branch 4 times, most recently from 7606490 to 34f079b Compare March 20, 2024 14:11
@@ -55,9 +55,7 @@ async def fetch_remote_tags(self, repository: str) -> List[str]:
data = await resp.json(content_type=None)
tags = data["results"]

valid_images = [tag["name"] for tag in tags]
print(valid_images)
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we could add a debug message like this one somewhere in the code

@dataclasses.dataclass
class Image:
digest: Optional[str]
size: int
Copy link
Member

Choose a reason for hiding this comment

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

expanded_size

* Add for each version tag details about size and digest for each image
* Add for each version tag details for active valid platforms
  specifications
@patrickelectric patrickelectric merged commit cc368d5 into bluerobotics:master Mar 21, 2024
2 checks passed
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.

None yet

2 participants