Skip to content

Commit 25b605f

Browse files
authored
fix(examples/lima/coder.yaml): update base image, remove usage of deprecated LIMA_CIDATA (coder#12613)
* fix(examples/lima/coder.yaml): update base image, remove usage of deprecated LIMA_CIDATA, name template consistently * make fmt
1 parent 4962324 commit 25b605f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

examples/lima/coder.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
# This example requires Lima v0.8.3 or later.
99
images:
10-
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
11-
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20221201/ubuntu-22.04-server-cloudimg-amd64.img"
10+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20240126/ubuntu-22.04-server-cloudimg-amd64.img"
1211
arch: "x86_64"
13-
digest: "sha256:8a814737df484d9e2f4cb2c04c91629aea2fced6799fc36f77376f0da91dba65"
14-
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20221201/ubuntu-22.04-server-cloudimg-arm64.img"
12+
digest: "sha256:9f8a0d84b81a1d481aafca2337cb9f0c1fdf697239ac488177cf29c97d706c25"
13+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20240126/ubuntu-22.04-server-cloudimg-arm64.img"
1514
arch: "aarch64"
16-
digest: "sha256:8a0477adcbdadefd58ae5c0625b53bbe618aedfe69983b824da8d02be0a8c961"
15+
digest: "sha256:dddfb1741f16ea9eaaaeb731c5c67dd2cb38a4768b2007954cb9babfe1008e0d"
1716
# Fallback to the latest release image.
1817
# Hint: run `limactl prune` to invalidate the cache
1918
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
@@ -63,7 +62,7 @@ provision:
6362
# SSH session around. We don't want users to have to manually delete ~/.lima/$VM/ssh.sock
6463
# so we're just instead going to modify the perms on the Docker socket.
6564
# See: https://github.com/lima-vm/lima/issues/528
66-
chown ${LIMA_CIDATA_USER} /var/run/docker.sock
65+
chown {{.User}} /var/run/docker.sock
6766
chmod og+rwx /var/run/docker.sock
6867
- mode: system
6968
script: |
@@ -103,7 +102,7 @@ provision:
103102
fi
104103
DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')
105104
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${DOCKER_ARCH}" "${DOCKER_HOST}" | tee "${temp_template_dir}/params.yaml"
106-
coder templates push "docker-${DOCKER_ARCH}" --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes
105+
coder templates push docker --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes
107106
rm -rfv "${temp_template_dir}"
108107
probes:
109108
- description: "docker to be installed"
@@ -132,6 +131,12 @@ message: |
132131
Username: "admin@coder.com"
133132
Password: Run `LIMA_INSTANCE={{.Instance.Name}} lima cat /home/${USER}.linux/.config/coderv2/password` 🤫
134133
134+
Create your first workspace:
135+
------
136+
limactl shell {{.Instance.Name}}
137+
coder create my-workspace --template docker
138+
------
139+
135140
Get started creating your own template now:
136141
------
137142
limactl shell {{.Instance.Name}}

0 commit comments

Comments
 (0)