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

Ask for confirmation before downloading the base image #136

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

debarshiray
Copy link
Member

@debarshiray debarshiray commented Apr 26, 2019

Currently, there's no easy way to get the size of the impending
download. Skopeo doesn't offer the size of the OCI image [1] and it's
debatable whether another 23 MB binary ought to be pulled in as a
dependency just for this.

Given that the default fedora-toolbox images are the only base images
available via a public repository, the size of the download is hard
coded to reflect the approximate size of the fedora-toolbox images.
These images are between 451 MB and 483 MB, so 500 MB should be a
reasonably suggestive approximate that shouldn't negatively surprise
users.

[1] containers/skopeo#641

https://github.com/debarshiray/toolbox/issues/134

Currently, there's no easy way to get the size of the impending
download. Skopeo doesn't offer the size of the OCI image [1] and it's
debatable whether another 23 MB binary ought to be pulled in as a
dependency just for this.

Given that the default fedora-toolbox images are the only base images
available via a public repository, the size of the download is hard
coded to reflect the approximate size of the fedora-toolbox images.
These images are between 451 MB and 483 MB, so 500 MB should be a
reasonably suggestive approximate that shouldn't negatively surprise
users.

[1] containers/skopeo#641

https://github.com/debarshiray/toolbox/issues/134
@debarshiray debarshiray force-pushed the wip/rishi/create-download-confirmation branch from a4bea16 to b718fbd Compare April 26, 2019 16:42
@debarshiray debarshiray merged commit b718fbd into master Apr 26, 2019
@debarshiray debarshiray deleted the wip/rishi/create-download-confirmation branch April 26, 2019 16:47
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.

1 participant