bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evan...@apache.org
Subject bigtop git commit: BIGTOP-2672. Update gradle wrapper for Docker Provisioner
Date Tue, 28 Mar 2017 18:18:00 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 1cdb5ed52 -> 970be8740


BIGTOP-2672. Update gradle wrapper for Docker Provisioner


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/970be874
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/970be874
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/970be874

Branch: refs/heads/master
Commit: 970be87408bef62ab9cc4b0f8681ab082c85c71c
Parents: 1cdb5ed
Author: Evans Ye <evansye@apache.org>
Authored: Tue Mar 28 03:08:18 2017 +0000
Committer: Evans Ye <evansye@apache.org>
Committed: Wed Mar 29 02:22:08 2017 +0800

----------------------------------------------------------------------
 build.gradle | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/970be874/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 3db2e25..c209915 100644
--- a/build.gradle
+++ b/build.gradle
@@ -257,9 +257,9 @@ task "toolchain-devtools"(type:Exec,
 }
 
 task "docker-provisioner"(type:Exec,
-    description: 'Provision a Bigtop cluster on Docker container(s). Default to CentOS and
1 node.\nCreate a 3 node cluster:\n  $ ./gradlew -Pnum_instances=3 docker-provisioner\nRun
smoke tests on 3 node cluster:\n  $ ./gradlew -Pnum_instances=3 -Prun_smoke_tests=true docker-provisioner\nSpecify
configuration file (located in bigtop-deploy/vm/vagrant-puppet-docker/):\n  $ ./gradlew -Pconfig=vagrantconfig_debian.yaml
docker-provisioner',
+    description: 'Provision a Bigtop cluster on Docker container(s). Default to CentOS and
1 node.\nCreate a 3 node cluster:\n  $ ./gradlew -Pnum_instances=3 docker-provisioner\nRun
smoke tests on 3 node cluster:\n  $ ./gradlew -Pnum_instances=3 -Prun_smoke_tests=true docker-provisioner\nSpecify
configuration file (located in provisioner/docker/):\n  $ ./gradlew -Pconfig=config_debian8.yaml
docker-provisioner',
     group: DEPLOY_GROUP) {
-  def _config = project.hasProperty("config") ? config : "vagrantconfig.yaml"
+  def _config = project.hasProperty("config") ? config : "config.yaml"
   def _num_instances = project.hasProperty("num_instances") ? num_instances : 1
   def command = [
       './docker-hadoop.sh',
@@ -269,14 +269,14 @@ task "docker-provisioner"(type:Exec,
   if ( project.hasProperty("run_smoke_tests") && run_smoke_tests ) {
     command.add("--smoke-tests")
   }
-  workingDir 'bigtop-deploy/vm/vagrant-puppet-docker'
+  workingDir 'provisioner/docker'
   commandLine command
 }
 task "docker-provisioner-ssh"(type:Exec,
-    description: 'Show ssh command to get in to the provisioned container',
+    description: 'Show command to get in to the provisioned container',
     group: DEPLOY_GROUP) {
-  workingDir 'bigtop-deploy/vm/vagrant-puppet-docker'
-  def message = "To ssh in to the container, do: \n(cd " + workingDir + " && vagrant
ssh <CONTAIER_NAME>)"
+  workingDir 'provisioner/docker'
+  def message = "To get in to the container, do: \n\ndocker exec -ti <CONTAIER_NAME>
bash \n\nYou can get container name by ./gradlew docker-provisioner-status"
   def command = [
       '/bin/echo',
       message
@@ -287,10 +287,10 @@ task "docker-provisioner-status"(type:Exec,
     description: 'Show status of Bigtop Docker cluster',
     group: DEPLOY_GROUP) {
   def command = [
-      'vagrant',
-      'status',
+      './docker-hadoop.sh',
+      '--list',
   ]
-  workingDir 'bigtop-deploy/vm/vagrant-puppet-docker'
+  workingDir 'provisioner/docker'
   commandLine command
 }
 task "docker-provisioner-destroy"(type:Exec,
@@ -300,7 +300,7 @@ task "docker-provisioner-destroy"(type:Exec,
       './docker-hadoop.sh',
       '--destroy'
   ]
-  workingDir 'bigtop-deploy/vm/vagrant-puppet-docker'
+  workingDir 'provisioner/docker'
   commandLine command
 }
 


Mime
View raw message