mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
Install upgraded crun from edge (#81833)
This commit is contained in:
@@ -1052,9 +1052,15 @@ class ApkBootstrapper(Bootstrapper):
|
||||
# The `openssl` package is used to generate hashed passwords.
|
||||
# crun added as podman won't install it as dep if runc is present
|
||||
# but we don't want runc as it fails
|
||||
packages = ['docker', 'podman', 'openssl', 'crun']
|
||||
# The edge `crun` package installed below requires ip6tables, and in
|
||||
# edge, the `iptables` package includes `ip6tables`, but in 3.18 they
|
||||
# are separate. Remove `ip6tables` once we update to 3.19.
|
||||
packages = ['docker', 'podman', 'openssl', 'crun', 'ip6tables']
|
||||
|
||||
run_command('apk', 'add', *packages)
|
||||
# 3.18 only contains crun 1.8.4, to get 1.9.2 to resolve the run/shm issue, install crun from edge
|
||||
# Remove once we update to 3.19
|
||||
run_command('apk', 'upgrade', '-U', '--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community', 'crun')
|
||||
run_command('service', 'docker', 'start')
|
||||
run_command('modprobe', 'tun')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user