gandalf
gandalf copied to clipboard
Could not create git bare repository
I'm trying to test Tsuru env, i installed the stack with Docker Compose, using the Tsuru tutorial.
When i try to create a new app using tsuru-client with the command ./tsuru app-create test-py python3 --team=admin
, returns the error bellow:
Error: tsuru failed to create the app "test-py": Could not create git bare repository: exit status 128. fatal: cannot mkdir /var/lib/gandalf/repositories/test-py.git: Permission denied
i ran _ docker exec -it 16b84a7256cf chown git:git /var/lib/gandalf/repositories/
and now i can create respositories:
➜ Downloads _ docker exec -it 16b84a7256cf chown git:git /var/lib/gandalf/repositories/
➜ Downloads ./tsuru app-create test-py python3 --team=admin
App "test-py" has been created!
Use app-info to check the status of the app and its units.
Your repository for "test-py" project is "git@localhost:test-py.git"
i believe this error can be resolved adding chown git:git /var/lib/gandalf/repositories/
line to gandalf docker-entrypoint.sh file.
its sounds correct? if yes, can i open the PR with this correction?