aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Update vagrant provisioning and aurorabuild scripts to remove the need to sudo to run build commands in the vagrant image.
Date Fri, 05 Sep 2014 22:12:36 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master eafb80ac6 -> 599a7dcbe


Update vagrant provisioning and aurorabuild scripts to remove the need to sudo to run build
commands in the vagrant image.

Bugs closed: AURORA-688

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


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

Branch: refs/heads/master
Commit: 599a7dcbe11a49f15d082882781e812a092e959d
Parents: eafb80a
Author: Joshua Cohen <jcohen@twitter.com>
Authored: Fri Sep 5 14:40:46 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Fri Sep 5 14:40:46 2014 -0700

----------------------------------------------------------------------
 docs/vagrant.md                           |  2 +-
 examples/vagrant/aurorabuild.sh           | 12 ++++++------
 examples/vagrant/provision-dev-cluster.sh |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/599a7dcb/docs/vagrant.md
----------------------------------------------------------------------
diff --git a/docs/vagrant.md b/docs/vagrant.md
index b66ff67..c3632ee 100644
--- a/docs/vagrant.md
+++ b/docs/vagrant.md
@@ -39,7 +39,7 @@ destroying and rebuilding your VM.
 `aurorabuild` accepts a list of components to build and update.  You may invoke the command
with
 no arguments to get a list of supported components.
 
-     vagrant ssh -c 'sudo aurorabuild client'
+     vagrant ssh -c 'aurorabuild client'
 
 
 Troubleshooting

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/599a7dcb/examples/vagrant/aurorabuild.sh
----------------------------------------------------------------------
diff --git a/examples/vagrant/aurorabuild.sh b/examples/vagrant/aurorabuild.sh
index 8b39a16..a276366 100755
--- a/examples/vagrant/aurorabuild.sh
+++ b/examples/vagrant/aurorabuild.sh
@@ -28,30 +28,30 @@ function upstart_update {
   # Stop and start is necessary to update a the configuration of
   # an upstart job.  We'll rarely change the configuration, but
   # it's probably better to do this upfront and avoid surprises/confusion.
-  stop $1
-  start $1
+  sudo stop $1
+  sudo start $1
 }
 
 function build_client {
   ./pants src/main/python/apache/aurora/client/bin:aurora_client
-  ln -sf $DIST_DIR/aurora_client.pex /usr/local/bin/aurora
+  sudo ln -sf $DIST_DIR/aurora_client.pex /usr/local/bin/aurora
 }
 
 function build_client2 {
   ./pants src/main/python/apache/aurora/client/cli:aurora2
-  ln -sf $DIST_DIR/aurora2.pex /usr/local/bin/aurora2
+  sudo ln -sf $DIST_DIR/aurora2.pex /usr/local/bin/aurora2
 }
 
 function build_admin_client {
   ./pants src/main/python/apache/aurora/client/bin:aurora_admin
-  ln -sf $DIST_DIR/aurora_admin.pex /usr/local/bin/aurora_admin
+  sudo ln -sf $DIST_DIR/aurora_admin.pex /usr/local/bin/aurora_admin
 }
 
 function build_scheduler {
   ./gradlew installApp
 
   export LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server
-  mkdir -p $AURORA_HOME/scheduler
+  sudo mkdir -p $AURORA_HOME/scheduler
   if sudo mesos-log initialize --path="$AURORA_HOME/scheduler/db"
   then
     echo "Replicated log initialized."

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/599a7dcb/examples/vagrant/provision-dev-cluster.sh
----------------------------------------------------------------------
diff --git a/examples/vagrant/provision-dev-cluster.sh b/examples/vagrant/provision-dev-cluster.sh
index 4883df2..740bc21 100755
--- a/examples/vagrant/provision-dev-cluster.sh
+++ b/examples/vagrant/provision-dev-cluster.sh
@@ -110,4 +110,4 @@ prepare_extras
 install_cluster_config
 install_ssh_config
 start_services
-aurorabuild client client2 admin_client executor observer scheduler
+su vagrant -c "aurorabuild client client2 admin_client executor observer scheduler"


Mime
View raw message