2020-11-16 14:04:15 +00:00
|
|
|
clone() {
|
|
|
|
git clone https://github.com/containers/$1.git 2>/dev/null || true
|
|
|
|
pushd $1
|
|
|
|
git config pull.rebase false
|
|
|
|
git pull origin master
|
2020-11-16 15:36:12 +00:00
|
|
|
git pull origin main
|
2020-11-16 14:04:15 +00:00
|
|
|
popd
|
|
|
|
}
|
|
|
|
#!/bin/sh
|
2020-11-16 15:36:12 +00:00
|
|
|
# checkout containers/storage and get man pages and storage.conf
|
2020-11-16 14:04:15 +00:00
|
|
|
clone storage
|
|
|
|
sed -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' storage/storage.conf > storage.conf
|
|
|
|
cp storage/docs/containers-storage.conf.5.md .
|
|
|
|
|
2020-11-16 15:36:12 +00:00
|
|
|
# checkout containers/image and get man pages and registries.conf
|
2020-11-16 14:04:15 +00:00
|
|
|
clone image
|
|
|
|
cp image/docs/*md .
|
|
|
|
sed -e 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' image/registries.conf > registries.conf
|
|
|
|
rm signature-protocols.md
|
|
|
|
|
2020-11-16 15:36:12 +00:00
|
|
|
# checkout containers/common and get man pages, seccomp.json and containers.conf
|
2020-11-16 14:04:15 +00:00
|
|
|
clone common
|
|
|
|
cp common/docs/*md .
|
|
|
|
cp common/pkg/config/containers.conf .
|
|
|
|
sed -e '/\"kill\",/i \
|
|
|
|
"keyctl",' \
|
|
|
|
-e '/\"socketcall\",/i \
|
|
|
|
"socket",' common/pkg/seccomp/seccomp.json > seccomp.json
|
|
|
|
sed -e 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' image/registries.conf > registries.conf
|
|
|
|
|
2020-11-16 15:36:12 +00:00
|
|
|
# checkout containers/podman and get mounts.conf man page
|
2020-11-16 14:04:15 +00:00
|
|
|
clone podman
|
|
|
|
cp podman/docs/source/markdown/containers-mounts.conf.5.md .
|
2020-11-16 15:36:12 +00:00
|
|
|
|
|
|
|
# checkout containers/shortnames and get shortnames.conf man page
|
|
|
|
clone shortnames
|
|
|
|
cp shortnames/shortnames.conf .
|