ODPI-100. Sandbox images should be created and published by CI (cherry picked from commit dcab91fa2f0e7587e36f45e0968bd8acb1937c0f)
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/ba4c1bf7 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/ba4c1bf7 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/ba4c1bf7 Branch: refs/heads/master Commit: ba4c1bf7e29ba639137259308d8b6e0252ef7fb9 Parents: d78693b Author: Konstantin Boudnik <[email protected]> Authored: Fri Mar 4 11:44:42 2016 -0800 Committer: Roman Shaposhnik <[email protected]> Committed: Mon Mar 13 14:36:08 2017 -0700 ---------------------------------------------------------------------- bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/ba4c1bf7/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 index bbedad3..bfd87b3 100755 --- a/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh +++ b/bigtop-deploy/vm/vagrant-puppet-vm/create-sandboxes.sh @@ -15,9 +15,11 @@ #!/bin/bash set -ex -WORKDIR=$0.$$.dir +WORKDIR=${1:-$0.work.dir} +echo "Cleaning $WORKDIR" +rm -rf $WORKDIR mkdir -p $WORKDIR -VERSION=${1:-1.0} +VERSION=${2:-1.0} NAME="vagrant-odpi-v$VERSION" # clean everything vagrant destroy -f
