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

"docker push" should support dockerExecCommand #911

Merged
merged 3 commits into from
Nov 18, 2016
Merged

"docker push" should support dockerExecCommand #911

merged 3 commits into from
Nov 18, 2016

Conversation

rbellamy
Copy link

Not sure how I missed this in #910.

I was certain that I made this change initially - perhaps it got lost during some of my rebasing.

The "docker push" command should also support the dockerExecCommand setting.

G. Richard Bellamy added 3 commits November 12, 2016 15:54
…s on /var/run/docker.socket have restricted access, preventing Docker build and push commands from executing without severely compromising the system.

See http://www.projectatomic.io/blog/2015/08/why-we-dont-let-non-root-users-run-docker-in-centos-fedora-or-rhel/

Therefore, I've added a new setting which supports replacing the default docker shell exec command so that I can instead use `sudo docker`, which is the recommended method for executing Docker on CentOS, Fedora and RHEL.

What I don't want to do is run SBT as root - this will cause the working directory, and the ivy cache to become polluted with artifacts that are owned by root. It's best to limit the use of escalated privileges to just those commands that require them to avoid this pollution.

So, to avoid:

sudo sbt docker:publishLocal
sbt clean <=== will fail because "target" is now owned by root
I was certain that I made this change initially - perhaps it got lost
during some of my rebasing.

The "docker push" should also support the dockerExecCommand setting.
@rbellamy
Copy link
Author

... and sorry for the noisy PR! I should have started a new branch since you already merged the previous PR.

@muuki88 muuki88 added the docker label Nov 18, 2016
@muuki88
Copy link
Contributor

muuki88 commented Nov 18, 2016

OMG! You were not the only one :D

@muuki88 muuki88 merged commit 12083e2 into sbt:master Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants