ODL plugin build dependency installation was incorrectly put into lab-reconfig
which runs on master node. This change moves the dependency installation into
fuel-odl-plugin-build builder which runs on jumphost.
Change-Id: Ic353cabeabb0a98fcdb8b2f94ababbbc79d3e963
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
set -o nounset
set -o pipefail
+ if [[ ! $(rpm -qa | grep rubygems) ]]; then
+ echo "Rubygems not found, but required for Fuel Plugin build ... attempting to install"
+ sudo yum install -y rubygems ruby-devel
+ fi
+
+ if [[ ! $(gem list | grep fpm) ]]; then
+ echo "fpm gem not found, but required for Fuel Plugin build ... attempting to install"
+ sudo gem install fpm
+ fi
+
# log info to console
echo "Starting the build of Fuel Opendaylight Plugin. This could take some time..."
echo "--------------------------------------------------------"
sudo yum install -y python-2.7*
fi
-if [[ ! $(rpm -qa | grep rubygems) ]]; then
- echo "Rubygems not found, but required for Fuel Plugin build ... attempting to install"
- sudo yum install -y rubygems ruby-devel
-fi
-
-if [[ ! $(gem list | grep fpm) ]]; then
- echo "fpm gem not found, but required for Fuel Plugin build ... attempting to install"
- sudo gem install fpm
-fi
-
if [ ! -f "$BASEDIR/venv/updated" -o $BASEDIR/requirements.pip -nt $BASEDIR/venv/updated ]; then
source $BASEDIR/venv/bin/activate
pip install -r $BASEDIR/requirements.pip