32 lines
923 B
Markdown
32 lines
923 B
Markdown
# To upgrade to a minor release
|
|
|
|
Generate a new 10-rhel-partner.in file, which assumes we have
|
|
build containers already for the target distro and the partner
|
|
keys exist in:
|
|
|
|
https://gitlab.devtools.intel.com/vtt/sws/gfx-build-docker-images
|
|
|
|
```bash
|
|
export OS_RELEASE=8.2
|
|
git clone --depth=1 --branch=master \
|
|
https://gitlab.devtools.intel.com/vtt/sws/gfx-build-docker-images tmp
|
|
TARGET=${OS_RELEASE}/10-rhel-partner.in
|
|
REPOS=tmp/rhel-${OS_RELEASE}/dockerfiles/
|
|
[ ! -d $(dirname ${TARGET}) ] && mkdir $(dirname ${TARGET})
|
|
|
|
cat << EOF > ${TARGET}
|
|
# Remove any pre-configured repositories
|
|
RUN rm -rf /etc/yum.repos.d/*
|
|
|
|
# Partner keys from:
|
|
# https://gitlab.devtools.intel.com/vtt/sws/gfx-build-docker-images
|
|
EOF
|
|
|
|
for repo in ${REPOS}/*.repo; do
|
|
echo "RUN { \\"
|
|
cat "${repo}" | while read line; do echo " echo '${line//\"/\\\"}' ; \\"; done
|
|
echo "} > /etc/yum.repos.d/$(basename ${repo})"
|
|
done >> ${TARGET}
|
|
rm -rf tmp
|
|
```
|