skopeo/update.sh
Jindrich Novy a08e52fb3b skopeo-1.2.1-1.el9
- ship preconfigured /etc/containers/registries.d/ files with containers-common

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2021-01-14 09:26:12 +01:00

10 lines
590 B
Bash
Executable File

#!/bin/bash
spectool -f -g skopeo.spec
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' storage.conf
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
"keyctl",' seccomp.json
sed -i '/\"socketcall\",/i \
"socket",' seccomp.json
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' registries.conf
sed -i 's,#.*events_logger.*=.*"journald",events_logger = "file",' containers.conf