You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2015/08/05 22:45:14 UTC

aurora git commit: Configure vagrant environment for sudo-less docker.

Repository: aurora
Updated Branches:
  refs/heads/master 61c63ea9e -> 8a8ed2d1d


Configure vagrant environment for sudo-less docker.

Bugs closed: AURORA-1430

Reviewed at https://reviews.apache.org/r/37136/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/8a8ed2d1
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/8a8ed2d1
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/8a8ed2d1

Branch: refs/heads/master
Commit: 8a8ed2d1dad2c4b81f586f8250fbe08d3c6d40f4
Parents: 61c63ea
Author: Bill Farner <wf...@apache.org>
Authored: Wed Aug 5 13:44:38 2015 -0700
Committer: Bill Farner <wf...@apache.org>
Committed: Wed Aug 5 13:44:38 2015 -0700

----------------------------------------------------------------------
 examples/vagrant/provision-dev-cluster.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/8a8ed2d1/examples/vagrant/provision-dev-cluster.sh
----------------------------------------------------------------------
diff --git a/examples/vagrant/provision-dev-cluster.sh b/examples/vagrant/provision-dev-cluster.sh
index 18d3883..fc53885 100755
--- a/examples/vagrant/provision-dev-cluster.sh
+++ b/examples/vagrant/provision-dev-cluster.sh
@@ -94,6 +94,11 @@ EOF
   chown vagrant:vagrant /home/vagrant/.netrc
 }
 
+function sudoless_docker_setup {
+  gpasswd -a vagrant docker
+  service docker restart
+}
+
 function start_services {
   #Executing true on failure to please bash -e in case services are already running
   start zookeeper    || true
@@ -123,4 +128,5 @@ install_ssh_config
 start_services
 enable_gradle_daemon
 configure_netrc
+sudoless_docker_setup
 su vagrant -c "aurorabuild all"