Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement Linux docker launcher #1

Open
stebourbi opened this issue Feb 24, 2015 · 4 comments
Open

implement Linux docker launcher #1

stebourbi opened this issue Feb 24, 2015 · 4 comments

Comments

@stebourbi
Copy link
Owner

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:

  • prompt for sudo password each time a command is launched
  • add the current user to the docker group
  • pass the sudo password to the commands via a configuration (system conf or a file)
  • generate a script that runs the commands and define it as passwordless in sudo configuration

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

@sjeandeaux
Copy link
Contributor

Question and potentials actions by workarounds :

I order workaround by prefered implementation.

##add the current user to the docker group

  • Detect if user is in group docker
  • Modify scala code add LinuxDocker without sudo
  • Create page wiki to indicate how add user in groud docker

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

  • Modify scala to read this file
  • What is localisation of file (~/.sbt-docker-launcher or ...)?

##prompt for sudo password each time a command is launched

  • Modify scala code to integrate a prompt

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

  • when do you run this commands?

@stebourbi
Copy link
Owner Author

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

@stebourbi
Copy link
Owner Author

I mean start with the first one 😬

@sjeandeaux
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants