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

deploy: Add number of layers to fetch progress #524

Merged
merged 1 commit into from
May 15, 2024

Conversation

cgwalters
Copy link
Collaborator

We had a {prefix} in the template, but nothing was set. Let's print the number of layers.

Now, in theory this should be a fix to ostree-ext, but doing so would require a Rust API change, and anyways in the future we want to switch to podman pulls anyways.

We had a `{prefix}` in the template, but nothing was set.  Let's
print the number of layers.

Now, in theory this should be a fix to ostree-ext, but
doing so would require a Rust API change, and anyways
in the future we want to switch to podman pulls anyways.

Signed-off-by: Colin Walters <walters@verbum.org>
@@ -113,6 +113,55 @@ pub(crate) fn check_bootc_label(config: &ostree_ext::oci_spec::image::ImageConfi
}
}

/// Write container fetch progress to standard output.
async fn handle_layer_progress_print(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@henrywang
Copy link
Contributor

Please ignore rhel 9.4 integration test failure. The new rhel9-rhel_bootc:rhel-9.4 image sets Compose ID to ''. So the /etc/yum.repo.d/rhel-9.repo can't be configured without Compose ID. I'll update the test in another PR later to fix this issue.

@jeckersb jeckersb self-assigned this May 15, 2024
Copy link
Contributor

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

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

LGTM, sanity checked it works as expected:

[root@ibm-p8-kvm-03-guest-02 ~]# ./bootc switch quay.io/centos-bootc/centos-bootc:stream9
layers already present: 0; layers needed: 66 (835.7 MB)
[24/66] 1.33 MiB [███████░░░░░░░░░░░░░] (0s) Fetching ostree chunk sha256:594c21b0ae2a (3.5 MB)                                                                                                                                                                                   

@jeckersb jeckersb merged commit ec780bb into containers:main May 15, 2024
15 of 17 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

3 participants