a1c309541f
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>
79 lines
2 KiB
YAML
79 lines
2 KiB
YAML
#
|
|
# Copyright © 2023 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
- name: Ensure that subordinate group ID ranges are absent
|
|
become: yes
|
|
file:
|
|
path: /etc/subgid
|
|
state: absent
|
|
|
|
- name: Ensure that subordinate user ID ranges are absent
|
|
become: yes
|
|
file:
|
|
path: /etc/subuid
|
|
state: absent
|
|
|
|
- name: Install RPM packages
|
|
become: yes
|
|
package:
|
|
name:
|
|
- ShellCheck
|
|
- bash-completion
|
|
- codespell
|
|
- fish
|
|
- flatpak-session-helper
|
|
- gcc
|
|
- golang
|
|
- golang-github-cpuguy83-md2man
|
|
- meson
|
|
- ninja-build
|
|
- shadow-utils-subid-devel
|
|
- systemd
|
|
- udisks2
|
|
state: present
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
- name: Ensure that podman(1) is absent
|
|
become: yes
|
|
package:
|
|
name:
|
|
- podman
|
|
state: absent
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
- name: Ensure that skopeo(1) is absent
|
|
become: yes
|
|
package:
|
|
name:
|
|
- skopeo
|
|
state: absent
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
- 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* shadow-utils-subid-devel golang flatpak-session-helper
|