Important Version Updates (#19)

* Important Version Updates
- Add dockerfile support for centos 8 series.
- Modify Dockerfile.centos to add CentOS 8 support and fix the problem of CentOS 5 series not being able to build.
- Modify modify_yum_source.sh to add CentOS 8 support and fix CentOS 5 series yum source problem.

* Update CentOS Stream support                                                                           INT ✘  base 
- Changed compile.sh to add support for CentOS Stream 8/9 series.
- Modified docker.README.md to add Stream series description.
- Modified Dockerfile.amazonlinux to add cleanup operations and reduce image size.
- Modify Dockerfile.centos, add cleanup operation, reduce image size
- Added Dockerfile.centos-stream to support Stream series build images.
- Added modify_dnf_source.pl to add Stream series yum source modification function.
- Modified README.md to add Stream series test pass information and correct formatting and word spelling errors.

---------

Co-authored-by: Rex Zhou <zhouruixi@goldwind.com>
This commit is contained in:
ChowRex
2024-06-04 17:01:06 +08:00
committed by GitHub
parent cd430750f3
commit f0b2bf7905
8 changed files with 160 additions and 27 deletions

View File

@@ -37,8 +37,9 @@ GUESS_DIST() {
fi
local dist=$(rpm --eval '%{?dist}' | tr -d '.')
# fallback to el7
[[ $dist == "el9" ]] && dist="el7"
[[ $dist == "el8" ]] && dist="el7"
[[ $dist == "an7" ]] && dist="el7"
[[ $dist == "an8" ]] && dist="el7"
@@ -145,7 +146,7 @@ if [[ -z $arg1 ]]; then
rpm -q gcc44 && export CC=gcc44
;;
*)
echo "Distro undefined, please specify manualy: el5 el6 el7 amzn1 amzn2 amzn2023"
echo "Distro undefined, please specify manually: el5 el6 el7 amzn1 amzn2 amzn2023"
echo -e "\nCurrent OS:"
[[ -f /etc/os-release ]] && cat /etc/os-release
[[ -f /etc/redhat-release ]] && cat /etc/redhat-release