cloud-native-toolkit / cloud-native-toolkit/multi-tenancy-gitops
Permission issue in bootstrap.sh when running set-git-source.sh from newly created gitops-0-bootstrap folder
- 主要言語
- Shell
- スター
- 120
- フォーク
- 713
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When trying to run bootstrap.sh in a docker container (image registry.access.redhat.com/ubi8/python-39) I receive a "Permission denied" error when it reaches the set_git_source function and tries to run `GIT_ORG=${GIT_ORG} ./scripts/set-git-source.sh`.
I looked into it, and it appears that when the gitops-0-bootstrap repo is cloned in, the .sh scripts aren't executable by default. So when bootstrap.sh in my initial folder creates the new gitops-0-bootstrap folder and then tries to run the set-git-source.sh file that is inside of it, it fails because the newly created file is not executable.
I was wondering if anyone has run into a similar problem, and while I can shim in a fix in the set_git_source function, I am trying to use this repo as an imported submodule and not make any changes.
[logs.pdf](https://github.com/cloud-native-toolkit/multi-tenancy-gitops/files/7988733/logs.pdf)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
bootstrap.sh とその set_git_source 関数から始め、続いて新しく作成された gitops-0-bootstrap フォルダー内の scripts/set-git-source.sh を調べます。registry.access.redhat.com/ubi8/python-39 コンテナで bootstrap フローを再現し、set_git_source が permission-denied エラーなしで完了することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, shell
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100