bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [1/3] bigtop git commit: BIGTOP-2702. Fix Sandbox creation script
Date Wed, 22 Mar 2017 20:26:49 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 0d3448b81 -> c1cd696fe


BIGTOP-2702. Fix Sandbox creation script


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

Branch: refs/heads/master
Commit: 170df6d6e1e4a7546adec0b3ace530937f3db4cd
Parents: 0d3448b
Author: Roman Shaposhnik <rvs@apache.org>
Authored: Mon Mar 20 11:57:39 2017 -0700
Committer: Roman Shaposhnik <rvs@apache.org>
Committed: Wed Mar 22 11:50:03 2017 -0700

----------------------------------------------------------------------
 .../vm/vagrant-puppet-vm/create-sandboxes.sh    | 31 -------------------
 provisioner/docker/README.md                    |  9 ++++--
 provisioner/vagrant/README.md                   | 19 ++++++++++--
 provisioner/vagrant/create-sandboxes.sh         | 32 ++++++++++++++++++++
 4 files changed, 55 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/170df6d6/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh
----------------------------------------------------------------------
diff --git a/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh b/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh
deleted file mode 100755
index fb357e8..0000000
--- a/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#!/bin/bash
-
-set -ex
-WORKDIR=${1:-$0.work.dir}
-echo "Cleaning $WORKDIR"
-rm -rf $WORKDIR
-mkdir -p $WORKDIR
-VERSION=${2:-1.0}
-NAME="vagrant-bigtop-v$VERSION"
-# clean everything
-vagrant destroy -f
-vagrant up
-vagrant package --output $WORKDIR/${NAME}.box
-vagrant halt
-vmname=`VBoxManage  list vms | cut -d \" -f 2 | grep vagrant-puppet-vm_bigtop`
-VBoxManage export $vmname --output=$WORKDIR/${NAME}.ova --ovf20
-vagrant destroy -f

http://git-wip-us.apache.org/repos/asf/bigtop/blob/170df6d6/provisioner/docker/README.md
----------------------------------------------------------------------
diff --git a/provisioner/docker/README.md b/provisioner/docker/README.md
index ef52ff1..e784e3b 100644
--- a/provisioner/docker/README.md
+++ b/provisioner/docker/README.md
@@ -15,7 +15,7 @@
 
 ------------------------------------------------------------------------------------------------------------------------------------------------------
 
-#BigTop Docker provisioner
+# BigTop Docker provisioner
 
 ## Overview
 
@@ -33,6 +33,7 @@ This has been verified on Docker Engine 1.9.1, with api version 1.15, and
Docker
 ### OS X and Windows
 
 * Install [Docker Toolbox](https://www.docker.com/docker-toolbox)
+* Install Ruby
 
 ### Linux
 
@@ -40,6 +41,8 @@ This has been verified on Docker Engine 1.9.1, with api version 1.15, and
Docker
 
 * Install [Docker Compose](https://docs.docker.com/compose/install/)
 
+* Install Ruby
+
 * Start the Docker daemon
 
 ```
@@ -115,7 +118,7 @@ usage: docker-hadoop.sh [-C file ] args
        -h, --help
 ```
 
-##Configurations
+## Configurations
 
 * There are several parameters can be configured in config.yaml:
 
@@ -135,7 +138,7 @@ If you've built packages using local cloned bigtop and produced the apt/yum
repo
 enable_local_repo = true
 ```
 
-##Configure Apache Hadoop ecosystem components
+## Configure Apache Hadoop ecosystem components
 * Choose the ecosystem you want to be deployed by modifying components in config.yaml
 
 ```

http://git-wip-us.apache.org/repos/asf/bigtop/blob/170df6d6/provisioner/vagrant/README.md
----------------------------------------------------------------------
diff --git a/provisioner/vagrant/README.md b/provisioner/vagrant/README.md
index 0b1ff20..d4a1ec3 100644
--- a/provisioner/vagrant/README.md
+++ b/provisioner/vagrant/README.md
@@ -15,7 +15,7 @@
 
 ------------------------------------------------------------------------------------------------------------------------------------------------------
 
-#BigTop VM provisioner
+# BigTop VM provisioner
 
 ## Overview
 
@@ -88,7 +88,7 @@ or
 $ MEMORY_SIZE=8000 vagrant up
 ```
 
-##Configure Apache Hadoop ecosystem components
+## Configure Apache Hadoop ecosystem components
 * Choose the ecosystem you want to be deployed by modifying components in vagrantconfig.yaml
 
 ```
@@ -97,3 +97,18 @@ components: "hadoop, hbase, yarn,..."
 
 By default, Apache Hadoop and YARN will be installed.
 See `bigtop-deploy/puppet/hieradata/site.yaml` for more details.
+
+## Sandbox VM generation
+
+Vagrant is a useful tool for times when you would like to capture the state of the VM and
+publish it as a sandbox for others to use. We provide a wrapper script for this that works
+with VirtualBox. Here's how to run it:
+
+```
+./create-sandboxes.sh [temp work dir] [version]
+```
+If you don't specify the temp work dir the current directory is going to be used, the version
+by default is 1.0.
+
+Once the script is done running you will have vagrant-bigtop-v<version>.box and
+vagrant-bigtop-v<version>.ova VM images available to you under the temp work dir.

http://git-wip-us.apache.org/repos/asf/bigtop/blob/170df6d6/provisioner/vagrant/create-sandboxes.sh
----------------------------------------------------------------------
diff --git a/provisioner/vagrant/create-sandboxes.sh b/provisioner/vagrant/create-sandboxes.sh
new file mode 100755
index 0000000..e90e821
--- /dev/null
+++ b/provisioner/vagrant/create-sandboxes.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+set -ex
+WORKDIR=${1:-$0.work.dir}
+echo "Cleaning $WORKDIR"
+rm -rf $WORKDIR
+mkdir -p $WORKDIR
+VERSION=${2:-1.0}
+NAME="vagrant-bigtop-v$VERSION"
+# clean everything
+vagrant destroy -f
+vagrant up
+vagrant package --output $WORKDIR/${NAME}.box
+vagrant halt
+vmname=`VBoxManage  list vms | cut -d \" -f 2 | grep vagrant_bigtop`
+VBoxManage export $vmname --output=$WORKDIR/${NAME}.ova --ovf20
+vagrant destroy -f


Mime
View raw message