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

Aperta
#194 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
120
Fork
713
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con bootstrap.sh e la sua funzione set_git_source, quindi esamina scripts/set-git-source.sh nella cartella gitops-0-bootstrap appena creata. Riproduci il flusso di bootstrap nel container registry.access.redhat.com/ubi8/python-39 e verifica che set_git_source termini senza un errore di autorizzazione negata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, shell
Ambito
devops
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.