Add main script for building sahara images
Change-Id: Ia0a8604421dcfa553e8a21cf836856fb3c063504
This commit is contained in:
parent
6ef9c74158
commit
deddc28ce3
16
bin/sahara-image-create
Executable file
16
bin/sahara-image-create
Executable 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 $@
|
@ -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/*
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user