Skip to content

Commit

Permalink
ci: Update crun in Cirrus CI cloud image.
Browse files Browse the repository at this point in the history
There are some issues with older crun and newer kernel
combination [0]. Unfortunately Ubuntu 23.10 falls into this
category and the jobs will often time fail. Temoprarily use
newer crun from git that has the fix [1].

[0] containers/crun#1309
[1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/

Signed-off-by: Ales Musil <[email protected]>
  • Loading branch information
almusil committed Feb 16, 2024
1 parent 0e0f38f commit c5a94f5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ arm_unit_tests_task:
- sudo apt update
- sudo apt install -y podman

# XXX This should be removed when native crun >=1.9.1
update_crun_script:
- crun --version
- mkdir -p "/root/.local/bin"
- curl -L "https://github.com/containers/crun/releases/download/1.14.1/crun-1.14.1-linux-arm64" -o "${HOME}/.local/bin/crun"
- chmod +x "/root/.local/bin/crun"
- mkdir -p "/root/.config/containers"

containers_conf_file:
path: /root/.config/containers/containers.conf
from_contents: |
[engine.runtimes]
crun = [
"${HOME}/.local/bin/crun",
"/usr/bin/crun"
]
download_cache_script:
- curl http://$CIRRUS_HTTP_CACHE_HOST/${CIRRUS_CHANGE_IN_REPO} -o /tmp/image.tar

Expand Down

0 comments on commit c5a94f5

Please sign in to comment.