stebourbi / sbt-docker-launcher

sbt plugin that manages(start/stop) docker containers for integration tests (wip).
Other
1 stars 1 forks source link

implement Linux docker launcher #1

Open stebourbi opened 9 years ago

stebourbi commented 9 years ago

On linux docker needs root user abilitation to run commands and this is an issue in a context of an sbt build. I have not found any statisfying solution to resolve that but only some workarounds. And I think that we should implement all of the available workarounds and let the user decide which one to implement. Here are the workarounds that i have found:

there are probably bettter solutions but that's what i have found actually!

sjeandeaux commented 9 years ago

Question and potentials actions by workarounds :

I order workaround by prefered implementation.

add the current user to the docker group

pass the sudo password to the commands via a configuration (system conf or a file)

prompt for sudo password each time a command is launched

generate a script that runs the commands and define it as passwordless in sudo configuration

stebourbi commented 9 years ago

I agree with that. Let's start implementation. And will see the result.

stebourbi commented 9 years ago

I mean start with the first one :grimacing:

sjeandeaux commented 9 years ago

i keep "prompt solution" before i create a Dockerfile with docker on.