-
Notifications
You must be signed in to change notification settings - Fork 65
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
Automatically update quickstart to use the latest image #1354
Comments
I would add that we should have an automated way of pinning the image tag used in the CLI at compile time. Currently it uses Also currently there is an option to pass an image tag. |
What problem are we solving by pinning the image version? There are competing concerns here. On the one hand stability with the CLI. On the other, when connecting to networks it is helpful to stay up-to-date with minor releases. The quickstart image very rarely breaks it's own UI because it has no major version to increment, so the quickstart image already aims to provide stability. |
Rather than introduce a command I think we could change the CLI to attempt to update the image when connecting to testnet or pubnet, although we should make it tolerable to no connectivity, especially when running the local image. Taking the approach of updating automatically makes for one less problem the user has to solve. |
I want to make sure I understand where we landed on this issue. When starting up a network container with the CLI we could check to see if a newer version of the default image exists, and if so try to pull it. If there is no network connectivity, then use whatever image the user already has and notify them that there is a newer version available. Is that the idea? Also, for reference, these are the current defaults for which images are being used for each network: |
As I look at this a bit closer, I wonder if it would make sense to include an additional flag available to |
|
I'm a bit hesitant to use the word |
I think it's worth noting that it's also awkward option to use in an everyday flow, so the An average dev probably won't always use However a dev probably won't remember to on some cadence change the command they're using to include If we specify the To determine if the image has been pulled today, we can use the output of the
|
At the moment, we are doing the
So, as it is, we are already updating the image to the most recent of that tag whenever we're running start. From what I've seen, it doesn't look like bollard has an option that allows for passing in the
This would mean that the the But, I'm not sure if that is worth the effort right now. @janewang @leighmcculloch what do you think? Either way, I am going to add some more logging in here, so that we can tell the user if/when we are indeed pulling the newer image, and to inform them of the image digest that is being used. |
I think a bit logging notifying user of this behavior of pulling the latest suffices. |
+1 a bit of logging, plus it would be worth handling the case we can't pull and continuing with using what's available locally. And we can do all of that without any new options. |
This came up from a discussion topics on quickstart on May 28
The text was updated successfully, but these errors were encountered: