Add main script for building sahara images

Change-Id: Ia0a8604421dcfa553e8a21cf836856fb3c063504
This commit is contained in:
Sergey Reshetnyak 2015-03-22 16:06:49 +03:00
parent 6ef9c74158
commit deddc28ce3
3 changed files with 21 additions and 2 deletions

16
bin/sahara-image-create Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -eu
set -o pipefail
SCRIPT_HOME=$(dirname $(readlink -f $0))
if [ -d $SCRIPT_HOME/../share/sahara-elements ]; then
_PREFIX=$SCRIPT_HOME/../share/sahara-elements
elif [ -d $SCRIPT_HOME/../../../elements ]; then
_PREFIX=$SCRIPT_HOME/../../..
else
_PREFIX=$SCRIPT_HOME/..
fi
export ELEMENTS_PATH=$_PREFIX/elements
diskimage-create.sh $@

View File

@ -14,6 +14,10 @@ author-email = openstack-dev@lists.openstack.org
home-page = https://docs.openstack.org/developer/sahara
[files]
scripts =
bin/sahara-image-create
diskimage-create/diskimage-create.sh
data_files =
share/sahara-elements = elements/*

View File

@ -1,6 +1,5 @@
#!/bin/bash -xe
PLUGIN=$1
export SIM_REPO_PATH=$(pwd)
./diskimage-create/diskimage-create.sh -u -p $PLUGIN
tox -e venv -- sahara-image-create -u -p $PLUGIN