add rhel 8 to many repos

This commit is contained in:
z4yx 2020-03-07 13:31:04 +08:00
parent eed06d861f
commit 45894c185e
5 changed files with 24 additions and 3 deletions

View File

@ -16,7 +16,7 @@ DEBIAN_PATH="${BASE_PATH}/debian"
UBUNTU_VERSIONS=("trusty" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch" "buster")
EL_VERSIONS=("6" "7")
EL_VERSIONS=("6" "7" "8")
# =================== APT repos ===============================
if [[ ! -z ${DRY_RUN:-} ]]; then

View File

@ -42,14 +42,25 @@ gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=0
[el8]
name=gitlab-runner-el8
baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/8/x86_64
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=0
EOF
if [[ -z ${DRY_RUN:-} ]]; then
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
[ ! -d ${YUM_PATH}/el6 ] && mkdir -p ${YUM_PATH}/el6
[ ! -d ${YUM_PATH}/el7 ] && mkdir -p ${YUM_PATH}/el7
[ ! -d ${YUM_PATH}/el8 ] && mkdir -p ${YUM_PATH}/el8
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el6 ${YUM_PATH}/el6
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el7 ${YUM_PATH}/el7
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el8 ${YUM_PATH}/el8
fi
rm $cfg

View File

@ -17,7 +17,7 @@ DEBIAN_PATH="${BASE_PATH}/debian"
UBUNTU_VERSIONS=("trusty" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch" "buster")
EL_VERSIONS=("6" "7")
EL_VERSIONS=("6" "7" "8")
mkdir -p ${YUM_PATH} ${UBUNTU_PATH} ${DEBIAN_PATH}

View File

@ -46,6 +46,14 @@ repo_gpgcheck=0
gpgcheck=0
enabled=1
sslverify=0
[el8-${mgver}]
name=el8-${mgver}
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/${mgver}/x86_64/
repo_gpgcheck=0
gpgcheck=0
enabled=1
sslverify=0
EOF
done
@ -54,11 +62,13 @@ if [[ -z ${DRY_RUN:-} ]]; then
for mgver in ${MONGO_VERSIONS[@]}; do
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el6-$mgver/ ${YUM_PATH}/el6-$mgver/
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el7-$mgver/ ${YUM_PATH}/el7-$mgver/
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el7-$mgver/ ${YUM_PATH}/el8-$mgver/
done
fi
[ -e ${YUM_PATH}/el6 ] || (cd ${YUM_PATH}; ln -s el6-${STABLE_VERSION} el6)
[ -e ${YUM_PATH}/el7 ] || (cd ${YUM_PATH}; ln -s el7-${STABLE_VERSION} el7)
[ -e ${YUM_PATH}/el8 ] || (cd ${YUM_PATH}; ln -s el8-${STABLE_VERSION} el8)
rm $cfg

View File

@ -18,7 +18,7 @@ RPM_PATH="${BASE_PATH}/rpm"
APT_PATH="${BASE_PATH}/apt"
APT_VERSIONS=("bionic" "xenial" "trusty" "precise" "buster" "stretch" "jessie" "wheezy" "squeeze")
EL_VERSIONS=("5" "6" "7")
EL_VERSIONS=("5" "6" "7" "8")
mkdir -p ${RPM_PATH} ${APT_PATH}