-
Notifications
You must be signed in to change notification settings - Fork 618
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
Add hack/update-template-ubuntu.sh
#2702
Merged
AkihiroSuda
merged 1 commit into
lima-vm:master
from
norio-nomura:update-ubuntu-image.sh
Oct 10, 2024
Merged
Add hack/update-template-ubuntu.sh
#2702
AkihiroSuda
merged 1 commit into
lima-vm:master
from
norio-nomura:update-ubuntu-image.sh
Oct 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
norio-nomura
commented
Oct 8, 2024
AkihiroSuda
reviewed
Oct 8, 2024
AkihiroSuda
reviewed
Oct 8, 2024
AkihiroSuda
reviewed
Oct 8, 2024
10 tasks
Could you squash the commits? |
```console $ hack/update-template-ubuntu.sh update-template-ubuntu.sh: Update the Ubuntu image location in the specified templates Usage: update-template-ubuntu.sh [--flavor <flavor>|--minimal|--server] [--version <version>] <template.yaml>... Description: This script updates the Ubuntu image location in the specified templates. If the image location in the template contains a release date in the URL, the script replaces it with the latest available date. If no flags are specified, the script uses the flavor and version from the image location basename in the template. Image location basename format: ubuntu-<version>-<flavor>-cloudimg-<arch>.img Released Ubuntu image information is fetched from the following URLs: Server: https://cloud-images.ubuntu.com/releases/stream/v1/com.ubuntu.cloud:released:download.json Minimal: https://cloud-images.ubuntu.com/minimal/releases/stream/v1/com.ubuntu.cloud:released:download.json The downloaded JSON file will be cached in the Lima cache directory. Examples: Update the Ubuntu image location in templates/**.yaml: $ update-template-ubuntu.sh templates/**.yaml Update the Ubuntu image location in ~/.lima/ubuntu/lima.yaml: $ update-template-ubuntu.sh ~/.lima/ubuntu/lima.yaml Update the Ubuntu image location to ubuntu-24.04-minimal-cloudimg-<arch>.img in ~/.lima/docker/lima.yaml: $ update-template-ubuntu.sh --minimal --version 24.04 ~/.lima/docker/lima.yaml Flags: --flavor <flavor> Use the specified flavor image --server Shortcut for --flavor server --minimal Shortcut for --flavor minimal --version <version> Use the specified version -h, --help Print this help message ``` Signed-off-by: Norio Nomura <norio.nomura@gmail.com> hack/update-ubuntu-image.sh: add `--flavor <flavor>` flag Signed-off-by: Norio Nomura <norio.nomura@gmail.com> rename to `hack/update-template-ubuntu.sh` Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
norio-nomura
force-pushed
the
update-ubuntu-image.sh
branch
from
October 9, 2024 23:48
48fdad4
to
7bf550a
Compare
squashed and rebased on master. |
AkihiroSuda
changed the title
Add
Add Oct 9, 2024
hack/update-ubuntu-image.sh
hack/update-template-ubuntu.sh
AkihiroSuda
approved these changes
Oct 9, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
CI failure is irrelevant: |
Thanks! 🙏🏻 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.