-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Update docs to describe how the underlying VM and tools can be updated #105
Comments
Typically there is a new lima release shortly after any nerdctl release, so all you have to do is update lima once it is out. If you want to upgrade nerdctl before, then the best way is probably to create a
You'll have to lookup the digest yourself... 😄 You can check the builtin default values like this: $ limactl info | jq .defaultTemplate.containerd.archives
[
{
"location": "https://github.com/containerd/nerdctl/releases/download/v0.15.0/nerdctl-full-0.15.0-linux-amd64.tar.gz",
"arch": "x86_64",
"digest": "sha256:ca40d99d257e69f0220bb1cbdab1b602032692f45f713c901f328d2f4e3c12b3"
},
{
"location": "https://github.com/containerd/nerdctl/releases/download/v0.15.0/nerdctl-full-0.15.0-linux-arm64.tar.gz",
"arch": "aarch64",
"digest": "sha256:dd8639ce868bab394467576f55375c4b40a8288badb579d2e30c3487da6004ea"
}
] Oh, and you can copy the digest value from there (I'm running latest lima dev branch). |
Don't forget to remove/edit the override once you update |
I just double-checked, and lima 0.8.0 is available on brew, and uses nerdctl 0.15.0, so upgrading lima and restarting your VM should be all you need. |
Ahh. Great. That makes sense. Thanks! |
Adding this to the docs could still be a plus, since it might not be obvious how all the parts interact. |
Since it appears inevitable that users will not be sufficed with the autogenerated config, I will consider adding this to docs. Other than the image iso (and maybe the ssh port), every other config can be overridden without issues. I will also consider adding a flag to accommodate additional provision scripts. |
Not sure why you would need a flag; any provisioning scripts from The "merge" rules for lists and maps are not straight replacements, and the rules may vary for different properties, to maximize utility of the default/override feature. This is (tersely) documented at the end of default.yaml. |
That's a good point, I did not think of that. Thanks. |
@abiosoft I have not checked if you have implemented support for So I think it would be good to have It would just be an option. If PS: medium/long term I want to add a per-instance override mechanism, but don't know when I will have time for this. |
I have implemented support for
This was another reason I thought of provision script support. If I have time as well, I can take that on upstream. |
Please discuss first before starting the work. I want this to integrate with manually changing config settings, e.g. Also, when you delete an instance, any override stored inside the instance directory would be lost as well, even though I may have wanted to recreate a pristine copy right after deleting the old one. I haven't figured out how the pieces should all fit together, which is the main reason I haven't started on this already (you can see some very old discussion about this in lima-vm/lima#131). |
I hope it is the right thread to post this question related on how to override provision scripts. I tried to add some overrides to the colima vm in ~/.lima/_config/override.yaml :
but when I start the colima vm
I checked in the vm
but it doesn't seem to be executed Am I missing something ? |
@myannou why do you need to set alias in the VM? Firstly, aliases do not span shell sessions, so the alias would not be present. Except you set it in an equivalent of Kubernetes client |
it was just a test (probably not appropriated) to understand how to add scripts/packages/... in the colima vm.
So is it the right approach to use "~/.lima/_config/override.yaml " with the "provision" section ? |
nerdctl
has a new release:https://github.com/containerd/nerdctl/releases/tag/v0.15.0
It would be nice to add some documentation and even a helper script on how users can update some of the core CLI binaries like this, since some of them are in very active development.
The text was updated successfully, but these errors were encountered: