Skip to content

feat: Add TencentOS Server to supported distributions#549

Open
guoningzhang20 wants to merge 1 commit intodocker:masterfrom
guoningzhang20:fix/add-tencentos-support
Open

feat: Add TencentOS Server to supported distributions#549
guoningzhang20 wants to merge 1 commit intodocker:masterfrom
guoningzhang20:fix/add-tencentos-support

Conversation

@guoningzhang20
Copy link

Summary

The Docker convenience install script (install.sh) does not recognize TencentOS Server (ID=tencentos) as a supported distribution. When run on TencentOS, the script exits with ERROR: Unsupported distribution 'tencentos'.

TencentOS Server is a RHEL-based distribution maintained by Tencent Cloud, fully compatible with the CentOS/RHEL ecosystem. It uses dnf as its package manager and can use CentOS Docker repositories directly.

Changes

Modified install.sh to add tencentos support in three places:

  1. Version detection (case "$lsb_dist"): Added tencentos alongside centos|rhel to correctly extract VERSION_ID from /etc/os-release.
  2. Package installation (case "$lsb_dist"): Added tencentos alongside centos|fedora|rhel to enable the RPM-based installation path.
  3. Repository URL mapping: Added a check to map tencentos to the centos Docker repository, since Docker does not maintain a separate TencentOS repository.

TencentOS Server Info

  • OS Release: ID=tencentos, ID_LIKE="tencentos", PLATFORM_ID="platform:el9"
  • Package Manager: dnf (yum compatible)
  • Ecosystem: Fully RHEL/EL9 compatible, uses CentOS Docker repositories
  • Official site: https://cloud.tencent.com/product/ts

Testing

Verified on TencentOS Server V4.4 (x86_64) that the modified script:

  • Correctly identifies TencentOS as a supported distribution
  • Maps to the CentOS Docker repository for package installation
  • Successfully installs Docker Engine packages via dnf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant