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 <amusil@redhat.com>
  • Loading branch information
almusil committed Feb 16, 2024
1 parent 0e0f38f commit 7ca0eba
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 "${HOME}/.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 "${HOME}/.local/bin/crun"
- mkdir -p "${HOME}/.config/containers"

containers_conf_file:
path: ${HOME}/.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 7ca0eba

Please sign in to comment.