toolbox/playbooks/dependencies-centos-9-stream.yaml
Nieves Montero a1c309541f Report the size of the image that will be downloaded from a registry
This uses 'skopeo inspect' to get the size of the image on the registry,
which is usually less than the size of the image in a local
containers/storage image store after download (eg., 'podman images'),
because they are kept compressed on the registry.  Skopeo >= 1.10.0 is
needed to retrieve the sizes [1].

However, this doesn't add a hard dependency on Skopeo to accommodate
size-constrained operating systems like Fedora CoreOS.  If skopeo(1) is
missing or too old, then the size of the image won't be shown, but
everything else would continue to work as before.

Some changes by Debarshi Ray.

[1] Skopeo commit d9dfc44888ff71a6
    https://github.com/containers/skopeo/commit/d9dfc44888ff71a6
    https://github.com/containers/skopeo/issues/641

https://github.com/containers/toolbox/issues/752

Signed-off-by: Nieves Montero <nmontero@redhat.com>
2023-03-14 01:05:50 +01:00

61 lines
1.3 KiB
YAML

- name: Install RPM packages from CentOS Stream
become: yes
package:
name:
- bash-completion
- flatpak-session-helper
- gcc
- golang
- httpd-tools
- meson
- ninja-build
- openssl
- podman
- shadow-utils-subid-devel
- skopeo
- systemd
- udisks2
- name: Install RPM packages from CentOS Stream CodeReady Linux Builder
become: yes
package:
enablerepo: crb
name:
- golang-github-cpuguy83-md2man
- name: Enable EPEL
become: yes
package:
name:
- epel-release
- name: Install RPM packages from EPEL
become: yes
package:
name:
- ShellCheck
- bats
- codespell
- fish
- name: Download Go modules
shell: |
go mod download -x
args:
chdir: '{{ zuul.project.src_dir }}/src'
- name: Set up Git submodules
shell: |
git submodule init
git submodule update
args:
chdir: '{{ zuul.project.src_dir }}'
- name: Check versions of crucial packages
command: rpm -qa ShellCheck codespell *kernel* gcc *glibc* golang shadow-utils-subid-devel podman conmon containernetworking-plugins containers-common container-selinux crun fuse-overlayfs flatpak-session-helper skopeo
- name: Show podman versions
command: podman version
- name: Show podman debug information
command: podman info --debug