8
8
# https://github.com/Roblox/nomad-driver-containerd/tree/master/example
9
9
10
10
# This example requires Lima v0.7.0 or later.
11
-
12
- # Image is set to focal (20.04 LTS) for long-term stability
13
- # TODO: Upgrade to 22.04 LTS when nomad-driver-containerd supports cgroup v2: https://github.com/Roblox/nomad-driver-containerd/pull/133
14
11
images :
15
12
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
16
- - location : " https://cloud-images.ubuntu.com/releases/20 .04/release-20220302 /ubuntu-20 .04-server-cloudimg-amd64.img"
13
+ - location : " https://cloud-images.ubuntu.com/releases/22 .04/release-20230518 /ubuntu-22 .04-server-cloudimg-amd64.img"
17
14
arch : " x86_64"
18
- digest : " sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe "
19
- - location : " https://cloud-images.ubuntu.com/releases/20 .04/release-20220302 /ubuntu-20 .04-server-cloudimg-arm64.img"
15
+ digest : " sha256:afb820a9260217fd4c5c5aacfbca74aa7cd2418e830dc64ca2e0642b94aab161 "
16
+ - location : " https://cloud-images.ubuntu.com/releases/22 .04/release-20230518 /ubuntu-22 .04-server-cloudimg-arm64.img"
20
17
arch : " aarch64"
21
- digest : " sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329 "
18
+ digest : " sha256:b47f8be40b5f91c37874817c3324a72cea1982a5fdad031d9b648c9623c3b4e2 "
22
19
# Fallback to the latest release image.
23
20
# Hint: run `limactl prune` to invalidate the cache
24
- - location : " https://cloud-images.ubuntu.com/releases/20 .04/release/ubuntu-20 .04-server-cloudimg-amd64.img"
21
+ - location : " https://cloud-images.ubuntu.com/releases/22 .04/release/ubuntu-22 .04-server-cloudimg-amd64.img"
25
22
arch : " x86_64"
26
- - location : " https://cloud-images.ubuntu.com/releases/20 .04/release/ubuntu-20 .04-server-cloudimg-arm64.img"
23
+ - location : " https://cloud-images.ubuntu.com/releases/22 .04/release/ubuntu-22 .04-server-cloudimg-arm64.img"
27
24
arch : " aarch64"
28
25
29
26
# Mounts are disabled in this example, but can be enabled optionally.
@@ -43,12 +40,12 @@ provision:
43
40
apt-get install -y nomad consul golang-cfssl
44
41
sed -e '/^client/a \ \ cni_path = "/usr/local/libexec/cni"\n\ \ cni_config_dir = "/etc/cni/net.d"' -i /etc/nomad.d/nomad.hcl
45
42
# install containerd-driver
46
- DRIVER_VERSION=0.9.3
43
+ DRIVER_VERSION=0.9.4
47
44
case $(uname -m) in
48
- amd64| x86_64)
45
+ x86_64)
49
46
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver
50
47
;;
51
- arm64| aarch64)
48
+ aarch64)
52
49
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver-arm64
53
50
;;
54
51
esac
0 commit comments