toolbox icon indicating copy to clipboard operation
toolbox copied to clipboard

create: always offer to pull

Open juhp opened this issue 4 years ago • 10 comments

This PR addresses 2 common user issues with toolbox create:

  • users need to manually download newer images themselves
  • ~~the hardcoded "500MB download" is misleading~~

I have tested this locally and it seems to work okay for me.

juhp avatar Sep 13 '21 17:09 juhp

Build succeeded.

Any feedback on this? It is quite small :)

juhp avatar Oct 15 '21 04:10 juhp

Build failed.

So how about this Download <<image>> (image size ~400MB) then. Any better?

juhp avatar Nov 16 '21 07:11 juhp

Build failed.

An alternative for the pull part could be to make it an option instead:

ie toolbox create --pull ...

That would make it opt-in which should alleviate the storage space concerns with pulling newer images. (Personally I would prefer to offer to pull by default since it is too easy to forget to pull, but at least having the command option makes it more visible and easy to update. It might be nice to add a purge command eventually specifically for removing obsolete toolbox images.)

Though in it's current form the user can already say "no" to downloading a newer image: they are prompted each time.

juhp avatar Nov 16 '21 09:11 juhp

So how about this Download <<image>> (image size ~400MB) then. Any better?

Well, the best option would be to comment on https://github.com/containers/skopeo/issues/641 and push for it to get prioritized. It's not entirely trivial to get the exact size of the image.

debarshiray avatar Nov 16 '21 22:11 debarshiray

Okay, sure, thank you for the detailed replies and clarity: let's drop the size part of this PR completely.

(Actually I had not realized that skopeo was only exposing local image sizes.)

juhp avatar Nov 17 '21 10:11 juhp

Build failed.

Any hope of reviving this PR? It would vastly simplify the documentation on how to upgrade the Developer Toolbox I maintain, for instance.

sgallagher avatar Mar 19 '24 12:03 sgallagher

Build succeeded. https://softwarefactory-project.io/zuul/t/local/buildset/f52aae5400a542dfb3972981e359fd43

:heavy_check_mark: unit-test SUCCESS in 5m 33s :heavy_check_mark: unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 33s :heavy_check_mark: unit-test-restricted SUCCESS in 5m 25s :heavy_check_mark: system-test-fedora-rawhide SUCCESS in 38m 19s :heavy_check_mark: system-test-fedora-40 SUCCESS in 36m 37s :heavy_check_mark: system-test-fedora-39 SUCCESS in 36m 01s :heavy_check_mark: system-test-fedora-38 SUCCESS in 35m 45s

I made my main branch current, which caused this PR to close - not that it was going anywhere...

Anyway you can still find my original proposal in https://github.com/containers/toolbox/commit/8bfbbf4c5e58e2f002f517df8deed8bf1ba8effd in (https://github.com/juhp/toolbox/tree/always-pull) (I think that was it basically)

juhp avatar Jul 10 '24 16:07 juhp