moul / travis-docker

:whale::man: Docker in Travis-CI
https://manfred.life/travis-docker
MIT License
106 stars 22 forks source link

Avoid requiring sudo #24

Open gagern opened 9 years ago

gagern commented 9 years ago

It would be nice if travis-docker could be made to run with user permissions only, so that it could avoid relying on sudo and therefore be used on the new Travis infrastructure.

moul commented 9 years ago

:+1:, I will try

moul commented 9 years ago

It will be more difficult than expected, because we use the script https://get.docker.com which assume to be ran as root, I will try to play with mount in uml to fake an environment with sudo even without sudo in the .travis.yml file

gagern commented 9 years ago

It might make sense to look at boot2docker and see how they do things, since they end up with a minimalistic Linux (emulated and not UML, but perhaps that's similar enough) containing a working Docker setup. Apart from that, fakeroot and fakechroot might be of some use, although I'm kind of disappointed by these since my recent experiments.