summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2023-12-04 11:54:00 -0600
committerGitHub <noreply@github.com>2023-12-04 09:54:00 -0800
commitfc130b6bfc72632f0152e16fda1c8ae1100be114 (patch)
treebef4a679fad672981c20a8f32157f811fb66bba5
parent1609a5d1ccbdc8c85161043f7690c72d6e4c4857 (diff)
downloadansible-fc130b6bfc72632f0152e16fda1c8ae1100be114.zip
[stable-2.14] Install upgraded crun from edge (#81833). (#82342)
(cherry picked from commit e78cc1e60244fb6cb26ccbdd510b63e20fbf3297)
-rwxr-xr-xtest/integration/targets/ansible-test-container/runme.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-test-container/runme.py b/test/integration/targets/ansible-test-container/runme.py
index 687128056f..8ff48e0d99 100755
--- a/test/integration/targets/ansible-test-container/runme.py
+++ b/test/integration/targets/ansible-test-container/runme.py
@@ -1050,9 +1050,16 @@ class ApkBootstrapper(Bootstrapper):
def run(cls) -> None:
"""Run the bootstrapper."""
# The `openssl` package is used to generate hashed passwords.
- packages = ['docker', 'podman', 'openssl']
+ # crun added as podman won't install it as dep if runc is present
+ # but we don't want runc as it fails
+ # The edge `crun` package installed below requires ip6tables, and in
+ # edge, the `iptables` package includes `ip6tables`, but in 3.16 they
+ # are separate.
+ packages = ['docker', 'podman', 'openssl', 'crun', 'ip6tables']
run_command('apk', 'add', *packages)
+ # 3.16 only contains crun 1.4.5, to get 1.9.2 to resolve the run/shm issue, install crun from edge
+ run_command('apk', 'upgrade', '-U', '--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community', 'crun')
run_command('service', 'docker', 'start')
run_command('modprobe', 'tun')