|
7 | 7 |
|
8 | 8 | # This example requires Lima v0.8.3 or later.
|
9 | 9 | 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" |
12 | 11 | 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" |
15 | 14 | arch: "aarch64"
|
16 |
| - digest: "sha256:8a0477adcbdadefd58ae5c0625b53bbe618aedfe69983b824da8d02be0a8c961" |
| 15 | + digest: "sha256:dddfb1741f16ea9eaaaeb731c5c67dd2cb38a4768b2007954cb9babfe1008e0d" |
17 | 16 | # Fallback to the latest release image.
|
18 | 17 | # Hint: run `limactl prune` to invalidate the cache
|
19 | 18 | - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
|
@@ -63,7 +62,7 @@ provision:
|
63 | 62 | # SSH session around. We don't want users to have to manually delete ~/.lima/$VM/ssh.sock
|
64 | 63 | # so we're just instead going to modify the perms on the Docker socket.
|
65 | 64 | # 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 |
67 | 66 | chmod og+rwx /var/run/docker.sock
|
68 | 67 | - mode: system
|
69 | 68 | script: |
|
@@ -103,7 +102,7 @@ provision:
|
103 | 102 | fi
|
104 | 103 | DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')
|
105 | 104 | 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 |
107 | 106 | rm -rfv "${temp_template_dir}"
|
108 | 107 | probes:
|
109 | 108 | - description: "docker to be installed"
|
@@ -132,6 +131,12 @@ message: |
|
132 | 131 | Username: "admin@coder.com"
|
133 | 132 | Password: Run `LIMA_INSTANCE={{.Instance.Name}} lima cat /home/${USER}.linux/.config/coderv2/password` 🤫
|
134 | 133 |
|
| 134 | + Create your first workspace: |
| 135 | + ------ |
| 136 | + limactl shell {{.Instance.Name}} |
| 137 | + coder create my-workspace --template docker |
| 138 | + ------ |
| 139 | +
|
135 | 140 | Get started creating your own template now:
|
136 | 141 | ------
|
137 | 142 | limactl shell {{.Instance.Name}}
|
|
0 commit comments