Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
83
Star
106
Fork
87
openEuler
/
nestos-assembler
Code
Issues
5
Pull Requests
3
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
REAME文件对nosa命令封装的缺陷说明
Backlog
#IBR1ES
Bug
Yang.Li
Opened this issue
2025-03-05 19:52
**【缺陷描述】:README中对nosa命令的封装** README中: ```${COREOS_ASSEMBLER_CONFIG_GIT:+-v $COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} ``` (1)如果挂载了外部的git仓库文件夹;按照当前的nesos-config的目录结构COREOS_ASSEMBLER_CONFIG_GIT为nestos-config就不合适了。 所以/srv/src/config/的挂载值应该为```${COREOS_ASSEMBLER_CONFIG_GIT}/NestOS-For-Container```; 所以```COREOS_ASSEMBLER_CONFIG_GIT=[nestos-config git路径]/NestOS-For-Container``` 相关运行改为:```nosa init --force src/config```,即挂载的目录目的地址 (2)带git相关参数,包括subdir,应该是为了适配如下shell代码: 例如:```nosa init --force --branch NestOS-24.03-LTS https://gitee.com/openeuler/nestos-config.git NestOS-For-Container``` ```shell (cd src if ! test -e config; then case "${source}" in /*) ln -s "${source}/${subdir}" config;; *) git clone ${BRANCH:+--branch=${BRANCH}} --depth=1 --shallow-submodules --recurse-submodules "${source}" config # If a commit was specified then we'll fetch and reset # the specified branch to that commit. This is useful when # doing pipeline builds and targetting a specific commit # (i.e.) subordinate multi-arch build pipelines running # cosa init later in time than the x86_64 pipeline; new # commits could have come in. if [ -n "${COMMIT}" ]; then git -C ./config fetch origin "$COMMIT" git -C ./config reset --hard "$COMMIT" git -C ./config submodule update --init --recursive fi if [ -n "${subdir}" ]; then mv config config-git ln -sr config-git/"${subdir}" config fi (set +x; cd config && echo -n "Config commit: " && git describe --tags --always --abbrev=42) ;; esac fi) ```
**【缺陷描述】:README中对nosa命令的封装** README中: ```${COREOS_ASSEMBLER_CONFIG_GIT:+-v $COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} ``` (1)如果挂载了外部的git仓库文件夹;按照当前的nesos-config的目录结构COREOS_ASSEMBLER_CONFIG_GIT为nestos-config就不合适了。 所以/srv/src/config/的挂载值应该为```${COREOS_ASSEMBLER_CONFIG_GIT}/NestOS-For-Container```; 所以```COREOS_ASSEMBLER_CONFIG_GIT=[nestos-config git路径]/NestOS-For-Container``` 相关运行改为:```nosa init --force src/config```,即挂载的目录目的地址 (2)带git相关参数,包括subdir,应该是为了适配如下shell代码: 例如:```nosa init --force --branch NestOS-24.03-LTS https://gitee.com/openeuler/nestos-config.git NestOS-For-Container``` ```shell (cd src if ! test -e config; then case "${source}" in /*) ln -s "${source}/${subdir}" config;; *) git clone ${BRANCH:+--branch=${BRANCH}} --depth=1 --shallow-submodules --recurse-submodules "${source}" config # If a commit was specified then we'll fetch and reset # the specified branch to that commit. This is useful when # doing pipeline builds and targetting a specific commit # (i.e.) subordinate multi-arch build pipelines running # cosa init later in time than the x86_64 pipeline; new # commits could have come in. if [ -n "${COMMIT}" ]; then git -C ./config fetch origin "$COMMIT" git -C ./config reset --hard "$COMMIT" git -C ./config submodule update --init --recursive fi if [ -n "${subdir}" ]; then mv config config-git ln -sr config-git/"${subdir}" config fi (set +x; cd config && echo -n "Config commit: " && git describe --tags --always --abbrev=42) ;; esac fi) ```
Comments (
1
)
Sign in
to comment
Status
Backlog
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/sig-CloudNative
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (2)
Tags (5)
master
dev
v0.13.0.5
v0.13.0.4
v0.13.0.3
v0.13.0.2
v0.13.0.1
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(1)
1
https://gitee.com/openeuler/nestos-assembler.git
[email protected]
:openeuler/nestos-assembler.git
openeuler
nestos-assembler
nestos-assembler
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register