feat: add inject_nexus_repo.sh to inject Nexus mirror repo#159
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the inject_nexus_repo.sh script, which automates the configuration of Nexus mirror repositories for various Linux distributions, including Ubuntu, Debian, CentOS, Kylin, and openEuler. The script auto-detects the operating system and sets up the corresponding RPM or DEB repository files. Feedback focuses on preventing script failure in the _field function due to pipefail, implementing a root privilege check for system modifications, and enhancing the robustness of yum.conf parsing to correctly handle whitespace variations.
There was a problem hiding this comment.
Pull request overview
Adds a standalone Bash utility to configure an OS package manager (APT/YUM) to use a Nexus-hosted mirror, intended for offline-environment preparation.
Changes:
- Introduces
.github/scripts/offline_env/inject_nexus_repo.shto auto-detect OS/version and write Nexus repo configuration for RPM/DEB systems. - Implements OS-specific Nexus path mappings for ubuntu/debian/centos/kylin/openeuler.
- Disables existing upstream repos/sources after injecting Nexus configuration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
….github into feat/inject-nexus-repo
Description
Add inject_nexus_repo.sh to inject Nexus mirror repo
Issue(s)
https://project.feishu.cn/taosdata_td/job/detail/6954254328
Checklist
Please check the items in the checklist if applicable.