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

Abierto
#194 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
120
Forks
713
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza con bootstrap.sh y su función set_git_source; después, inspecciona scripts/set-git-source.sh en la carpeta gitops-0-bootstrap recién creada. Reproduce el flujo de bootstrap en el contenedor registry.access.redhat.com/ubi8/python-39 y verifica que set_git_source finalice sin un error de permiso denegado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
docker, shell
Área
devops
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.