altendky / docker-compose-phabricator-jenkins

4 stars 2 forks source link

Getting ssh to work with phabricator required editing visudo #7

Open eddieparker opened 6 years ago

eddieparker commented 6 years ago

Thanks for setting up this repo - it sped me up a great deal.

That said, I couldn't get your phabricator setup to work until I added the following to the app-entrypoint.sh:

 echo 'git ALL=(daemon-user) SETENV: NOPASSWD: /bin/ls' | sudo EDITOR='tee -a' visudo
 echo 'git ALL=(phabricator) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack, /usr/bin/hg, /usr/bin/svnserve' | sudo EDITOR='tee -a' visudo
 echo 'www-data ALL=(phabricator) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/lib/git-core/git-http-backend, /usr/bin/hg' | sudo EDITOR='tee -a' visudo

Otherwise my mercurial remote commands would complain that "sudo required a password".

Hope that helps!

altendky commented 6 years ago

Otherwise you have made no modifications? Not using a newer bitnami phabricator image or such? But you are using hg not git...

eddieparker commented 6 years ago

Otherwise no modifications, yes.

I am using the latest phabricator though; so good point.

I am also using hg; not sure if this would affect git on this later image.