diff options
Diffstat (limited to 'utils/lab-reconfiguration/create_venv.sh')
-rwxr-xr-x | utils/lab-reconfiguration/create_venv.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/lab-reconfiguration/create_venv.sh b/utils/lab-reconfiguration/create_venv.sh index 4e45f8462..e94b22b1b 100755 --- a/utils/lab-reconfiguration/create_venv.sh +++ b/utils/lab-reconfiguration/create_venv.sh @@ -30,6 +30,16 @@ if [[ ! $(rpm -qa | grep python-2.7) ]]; then 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 |