Skip to content

Commit 379d93b

Browse files
committed
templates: update Nomad to v0.9.4
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 3556b6f commit 379d93b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

examples/nomad.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@
88
# https://github.com/Roblox/nomad-driver-containerd/tree/master/example
99

1010
# 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
1411
images:
1512
# 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"
1714
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"
2017
arch: "aarch64"
21-
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
18+
digest: "sha256:b47f8be40b5f91c37874817c3324a72cea1982a5fdad031d9b648c9623c3b4e2"
2219
# Fallback to the latest release image.
2320
# 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"
2522
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"
2724
arch: "aarch64"
2825

2926
# Mounts are disabled in this example, but can be enabled optionally.
@@ -43,12 +40,12 @@ provision:
4340
apt-get install -y nomad consul golang-cfssl
4441
sed -e '/^client/a \ \ cni_path = "/usr/local/libexec/cni"\n\ \ cni_config_dir = "/etc/cni/net.d"' -i /etc/nomad.d/nomad.hcl
4542
# install containerd-driver
46-
DRIVER_VERSION=0.9.3
43+
DRIVER_VERSION=0.9.4
4744
case $(uname -m) in
48-
amd64|x86_64)
45+
x86_64)
4946
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver
5047
;;
51-
arm64|aarch64)
48+
aarch64)
5249
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver-arm64
5350
;;
5451
esac

0 commit comments

Comments
 (0)