- Notifications
You must be signed in to change notification settings - Fork928
fix(examples/lima/coder.yaml): update base image, remove usage of deprecated LIMA_CIDATA#12613
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -7,13 +7,12 @@ | ||
# This example requires Lima v0.8.3 or later. | ||
images: | ||
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20240126/ubuntu-22.04-server-cloudimg-amd64.img" | ||
arch: "x86_64" | ||
digest: "sha256:9f8a0d84b81a1d481aafca2337cb9f0c1fdf697239ac488177cf29c97d706c25" | ||
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20240126/ubuntu-22.04-server-cloudimg-arm64.img" | ||
arch: "aarch64" | ||
digest: "sha256:dddfb1741f16ea9eaaaeb731c5c67dd2cb38a4768b2007954cb9babfe1008e0d" | ||
# Fallback to the latest release image. | ||
# Hint: run `limactl prune` to invalidate the cache | ||
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img" | ||
@@ -63,7 +62,7 @@ provision: | ||
# SSH session around. We don't want users to have to manually delete ~/.lima/$VM/ssh.sock | ||
# so we're just instead going to modify the perms on the Docker socket. | ||
# See: https://github.com/lima-vm/lima/issues/528 | ||
chown{{.User}} /var/run/docker.sock | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is this yaml processed by Go templating? Or is this something else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yep, | ||
chmod og+rwx /var/run/docker.sock | ||
- mode: system | ||
script: | | ||
@@ -103,7 +102,7 @@ provision: | ||
fi | ||
DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}') | ||
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${DOCKER_ARCH}" "${DOCKER_HOST}" | tee "${temp_template_dir}/params.yaml" | ||
coder templates push docker --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes | ||
rm -rfv "${temp_template_dir}" | ||
probes: | ||
- description: "docker to be installed" | ||
@@ -132,6 +131,12 @@ message: | | ||
Username: "admin@coder.com" | ||
Password: Run `LIMA_INSTANCE={{.Instance.Name}} lima cat /home/${USER}.linux/.config/coderv2/password` 🤫 | ||
Create your first workspace: | ||
------ | ||
limactl shell {{.Instance.Name}} | ||
coder create my-workspace --template docker | ||
------ | ||
Get started creating your own template now: | ||
------ | ||
limactl shell {{.Instance.Name}} | ||