Skip to content

create: always offer to pull - #875

Closed
juhp wants to merge 0 commit into
containers:mainfrom
juhp:main
Closed

juhp wants to merge 0 commit into
containers:mainfrom
juhp:main

Conversation

@juhp

@juhp juhp commented Sep 13, 2021 •

Copy link
Copy Markdown
Contributor

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.

@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

@juhp

juhp commented Oct 15, 2021

Copy link
Copy Markdown
Contributor Author

Any feedback on this?
It is quite small :)

Comment thread src/cmd/create.go Resolved
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@juhp

juhp commented Nov 16, 2021

Copy link
Copy Markdown
Contributor Author

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

@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@juhp

juhp commented Nov 16, 2021 •

Copy link
Copy Markdown
Contributor Author

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
juhp requested a review from debarshiray November 16, 2021 09:16
@debarshiray

Copy link
Copy Markdown
Member

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

Well, the best option would be to comment on podman-container-tools/skopeo#641 and push for it to get prioritized. It's not entirely trivial to get the exact size of the image.

@juhp

juhp commented Nov 17, 2021 •

Copy link
Copy Markdown
Contributor Author

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 juhp changed the title create: always offer to pull and don't mention 500MB create: always offer to pull Nov 17, 2021
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@sgallagher

Copy link
Copy Markdown

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

@softwarefactory-delete-me

Copy link
Copy Markdown

@juhp

juhp commented Jul 10, 2024 •

Copy link
Copy Markdown
Contributor Author

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 8bfbbf4 in (https://github.com/juhp/toolbox/tree/always-pull)
(I think that was it basically)

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.

4 participants