mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
templates: split template:alpine to template:alpine-{3.21,3.22,3.23}
Alpine Linux supports multiple concurrent minor releases, so
template:alpine should be split into versioned templates, similar to
template:debian-{11,12,13} and template:almalinux-{8,9,10}.
Changes:
- Add versioned image templates: _images/alpine-{3.21,3.22,3.23}.yaml
- Add versioned top-level templates: alpine-{3.21,3.22,3.23}.yaml
- Make template:alpine an alias for template:alpine-3.23 (latest)
- Update hack/update-template-alpine.sh to preserve the minor version
from the template URL instead of defaulting to latest-stable, so it
only updates the patch release within the same minor version
- Update templates/README.md with the new versioned entries
Signed-off-by: Mysterio-17 <mradultiwari1708@gmail.com>
This commit is contained in:
1 parent
917327dc03
commit
0922478639
9 files changed
+66
-18
No files matched your search
@@ -134,7 +134,7 @@ function alpine_cache_key_for_image_kernel() {
|
||||
}
|
||||
|
||||
function alpine_image_entry_for_image_kernel() {
|
||||
local location=$1 kernel_is_not_supported=$2 overriding=${3:-'{"path_version":"latest-stable"}'} url_spec image_entry=''
|
||||
local location=$1 kernel_is_not_supported=$2 overriding=${3:-'{}'} url_spec image_entry=''
|
||||
[[ ${kernel_is_not_supported} == "null" ]] || echo "Updating kernel information is not supported on Alpine Linux" >&2
|
||||
url_spec=$(alpine_url_spec_from_location "${location}" | jq -r ". + ${overriding}")
|
||||
image_entry=$(alpine_latest_image_entry_for_url_spec "${url_spec}")
|
||||
@@ -253,7 +253,8 @@ if ! jq -e '.path_version' <<<"${overriding}" >/dev/null; then # --version-major
|
||||
elif [[ -n ${version_major} || -n ${version_minor} ]]; then # --version-major-minor is specified
|
||||
echo "Ignoring --version-major and --version-minor because --version-major-minor is specified" >&2
|
||||
fi
|
||||
[[ ${overriding} == "{}" ]] && overriding='{"path_version":"latest-stable"}'
|
||||
# When no version is specified, the script preserves the minor version from the template URL.
|
||||
# This ensures only the patch release is updated, not the minor release.
|
||||
|
||||
if [[ ${#templates[@]} -eq 0 ]]; then
|
||||
alpine_print_help
|
||||
|
||||
+3
-1
@@ -38,7 +38,9 @@ lima
|
||||
- [`almalinux-9`](./almalinux-9.yaml): AlmaLinux 9
|
||||
- [`almalinux-10`](./almalinux-10.yaml), `almalinux`: AlmaLinux 10
|
||||
- [`almalinux-kitten-10`](./almalinux-kitten-10.yaml), `almalinux-kitten`: AlmaLinux Kitten 10
|
||||
- [`alpine`](./alpine.yaml): ☆Alpine Linux
|
||||
- [`alpine-3.21`](./alpine-3.21.yaml): Alpine Linux 3.21
|
||||
- [`alpine-3.22`](./alpine-3.22.yaml): Alpine Linux 3.22
|
||||
- [`alpine-3.23`](./alpine-3.23.yaml), `alpine`: ☆Alpine Linux 3.23
|
||||
- [`alpine-iso`](./alpine-iso.yaml): ☆Alpine Linux (ISO9660 image). Compatible with the `alpine` template used in Lima prior to v1.0.
|
||||
- [`archlinux`](./archlinux.yaml): ☆Arch Linux
|
||||
- [`centos-stream-9`](./centos-stream-9.yaml), `centos-stream`: CentOS Stream 9
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
images:
|
||||
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.7-x86_64-uefi-cloudinit-r0.qcow2"
|
||||
arch: "x86_64"
|
||||
digest: "sha512:779afcc0bfdd4074ca620bb67c2f70f3d6cad4cdaf4fd91a9fd8a127feb159d9407be18cd8f778ed1adf950799cd93b2692d49ad7ee2221ed6a52d8e895d4c37"
|
||||
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.7-aarch64-uefi-cloudinit-r0.qcow2"
|
||||
arch: "aarch64"
|
||||
digest: "sha512:9837b968763c2f620aa81cab3dc26b7f914ffa935245c9e929e339559f0f2fecdfd281e5cf82457ecfd6a9b6726a8a8ec40fb35d99dd8fd9b27d3b76c304dac7"
|
||||
@@ -0,0 +1,7 @@
|
||||
images:
|
||||
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/cloud/nocloud_alpine-3.22.4-x86_64-uefi-cloudinit-r0.qcow2"
|
||||
arch: "x86_64"
|
||||
digest: "sha512:1b8743fccfd92d8b690e5a75972bebe5d6826b2ea94bc7c71ede3a2a39a5535cbb4e49a6a3f42852d1e05d63076c6f1fbc29ddbb63d766101eaa9dadcaebbb1f"
|
||||
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/cloud/nocloud_alpine-3.22.4-aarch64-uefi-cloudinit-r0.qcow2"
|
||||
arch: "aarch64"
|
||||
digest: "sha512:a53620902f99b1fd4591125d348e4385f036d590607f4fa90d6f85fea0248007ec763cc81d025f347ede5bd746b3726cf5eddd461b6c94c35376f71cb7558317"
|
||||
File renamed without changes.
@@ -0,0 +1,15 @@
|
||||
minimumLimaVersion: 2.0.0
|
||||
|
||||
base:
|
||||
- template:_images/alpine-3.21
|
||||
- template:_default/mounts
|
||||
|
||||
# The built-in containerd installer does not support Alpine currently.
|
||||
# Use a provisioning script to install containerd, buildkit, and nerdctl.
|
||||
#
|
||||
# NOTE: Starting with Lima v2.0, nerdctl version must be v2.1.6 or later to
|
||||
# enable port forwarding in rootful mode.
|
||||
# Available in apk since Alpine 3.22.
|
||||
containerd:
|
||||
system: false
|
||||
user: false
|
||||
@@ -0,0 +1,15 @@
|
||||
minimumLimaVersion: 2.0.0
|
||||
|
||||
base:
|
||||
- template:_images/alpine-3.22
|
||||
- template:_default/mounts
|
||||
|
||||
# The built-in containerd installer does not support Alpine currently.
|
||||
# Use a provisioning script to install containerd, buildkit, and nerdctl.
|
||||
#
|
||||
# NOTE: Starting with Lima v2.0, nerdctl version must be v2.1.6 or later to
|
||||
# enable port forwarding in rootful mode.
|
||||
# Available in apk since Alpine 3.22.
|
||||
containerd:
|
||||
system: false
|
||||
user: false
|
||||
@@ -0,0 +1,15 @@
|
||||
minimumLimaVersion: 2.0.0
|
||||
|
||||
base:
|
||||
- template:_images/alpine-3.23
|
||||
- template:_default/mounts
|
||||
|
||||
# The built-in containerd installer does not support Alpine currently.
|
||||
# Use a provisioning script to install containerd, buildkit, and nerdctl.
|
||||
#
|
||||
# NOTE: Starting with Lima v2.0, nerdctl version must be v2.1.6 or later to
|
||||
# enable port forwarding in rootful mode.
|
||||
# Available in apk since Alpine 3.22.
|
||||
containerd:
|
||||
system: false
|
||||
user: false
|
||||
@@ -1,15 +0,0 @@
|
||||
minimumLimaVersion: 2.0.0
|
||||
|
||||
base:
|
||||
- template:_images/alpine
|
||||
- template:_default/mounts
|
||||
|
||||
# The built-in containerd installer does not support Alpine currently.
|
||||
# Use a provisioning script to install containerd, buildkit, and nerdctl.
|
||||
#
|
||||
# NOTE: Starting with Lima v2.0, nerdctl version must be v2.1.6 or later to
|
||||
# enable port forwarding in rootful mode.
|
||||
# Available in apk since Alpine 3.22.
|
||||
containerd:
|
||||
system: false
|
||||
user: false
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
alpine-3.23.yaml
|
||||
Reference in new issue
Block a user