-
Notifications
You must be signed in to change notification settings - Fork 809
Closed
Description
Description
Make the usage of Lima more similar to a Vagrantfile or a Dockerfile.
Vagrant.configure("2") do |config|
config.vm.box = "cloud-image/ubuntu-24.04"
endhttps://app.vagrantup.com/cloud-image
FROM ubuntu:24.04
# or, with a fully qualified registry
FROM docker.io/library/ubuntu:24.04https://hub.docker.com/_/ubuntu
This by separating the usage of the images with the definition of the images.
templates/ubuntu.yaml
images:
- ubuntu-24.04images/ubuntu-24.04.yaml
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240423/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:32a9d30d18803da72f5936cf2b7b9efcb4d0bb63c67933f17e3bdfd1751de3f3"
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240423/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:c841bac00925d3e6892d979798103a867931f255f28fefd9d5e07e3e22d0ef22"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"The image can be shared with multiple templates, reducing the need for copy/paste of details.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels