Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
```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>
- Loading branch information