Install SteelScript App Framework on a Linux box in Azure

Overview

Want to test or develop reports, plugins and app with SteelScript App Framework in Azure? Waiting to have the Riverbed preconfigured SteelScript VM 1.0 ready in a click in the Azure Marketplace , the following provides a step-by-step bash commands based procedure to install SteelScript App Framework from scratch on a Linux box, tested on a Linux CentOS 7.2 VM in Azure

overview2.png


This was done with the help of Mike Garabedian, Eric De Bressing and the online documentation:

 

Pre-requisites

 

Step-by-step command


System preparation

#1 Provision a linux VM Centos 7.2

 

#2 update system
sudo yum -y update
sudo shutdown -r

 

#3 Dev tools
sudo yum clean all
sudo yum groupinstall "Development tools"
sudo yum install python-devel


Deploy requirements and Steelscript App Framework

 

cd /tmp

 

#1
#### pip - https://pip.pypa.io/en/stable/
wget "https://bootstrap.pypa.io/get-pip.py" -O "get-pip.py"
sudo python get-pip.py

 

#2
#### https://github.com/riverbed/steelscript-appfwk
sudo pip install steelscript
sudo steel install

 

#3
wget https://support.riverbed.com/apis/steelscript/_downloads/steel_bootstrap.py
sudo python steel_bootstrap.py install

 

#4
sudo steel install --appfwk


#5
sudo pip install reschema

 

#6 install https://github.com/riverbed/steelscript-vm-config/blob/master/provisioning/roles/appfwk_webserver/templates/etc.init.d.progressd.distrib.j2
wget "https://github.com/riverbed/steelscript-vm-config/raw/master/provisioning/roles/appfwk_webserver/templates/etc.init.d.progressd.distrib.j2" -O /etc/init.d/progressd
sudo chmod +xxx /etc/init.d/progressd
sudo chkconfig --add progressd

 

Create a SteelScript App Framework project (https://support.riverbed.com/apis/steelscript/index.html)

sudo steel appfwk mkproject -d /tmp/MyProject
cd /tmp/MyProject ; sudo steel appfwk init

 

 

Edit configuration files

 

/etc/init.d/progressd, comment the following 3 lines and add the next lines below

#   dir="{{ virtualenv_apache }}/lib/python2.7/site-packages/steelscript/appfwk/progressd"
#   cmd="{{ virtualenv_apache }}/bin/python progressd.py --path {{ project_root_apache }} --port {{ apache_progressd_port }}"
#   user="{{ project_owner_apache }}"
dir="/usr/lib/python2.7/site-packages/steelscript/appfwk/progressd"
cmd="/bin/python progressd.py --path /tmp/MyProject/  --port 5001"
user="root"














 

/tmp/MyProject/local_settings.py, add 2 lines

PROGRESSD_HOST='http://127.0.0.1'
PROGRESSD_PORT=5001














 

 

Running the server

#1 progressd

sudo service progressd restart

 

#2 appfwk

cd /tmp/MyProject ; sudo python /tmp/MyProject/manage.py runserver 10.0.0.1:8000