Skip to content

Commit

Permalink
upgrade deployment to ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavi committed Mar 6, 2018
1 parent 9c9c017 commit e99505c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/labspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"build_requirements": {
"platform": {
"os": "ubuntu",
"osVersion": "12",
"osVersion": "14.04",
"arch": "x64",
"service_pack": "",
"installer": [
Expand Down
20 changes: 18 additions & 2 deletions src/setup.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#+SETUPFILE: ./org-templates/level-0.org
#+options: ^:nil


* Introduction
This will install all the dependencies required for setting up the outreach
portal 2.0.
Expand Down Expand Up @@ -627,8 +628,22 @@ fi

# Install pre-requsite dependencies: python-dev, mysqld-dev, setuptools,
# apache, mod_wsgi etc.
echo "Installing PIP"
apt-get remove -y python-pip
apt-get purge python-pip
mkdir -p build/pip
cd build/pip
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
tar xvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
if [ $? -ne 0 ]; then
echo "FATAL: PIP installation failed!"
exit 1;
fi

echo "Installing pre-requisite dependencies.."
apt-get install -y python-dev libmysqld-dev python-setuptools apache2 libapache2-mod-wsgi
apt-get install -y python-dev libmysqld-dev python-setuptools apache2 libapache2-mod-wsgi python-mysqldb
if [[ $? -ne 0 ]]; then
echo "FATAL: Installing pre-requisite dependencies failed!"
exit 1;
Expand Down Expand Up @@ -719,7 +734,7 @@ update_app_config () {
update_apache_config() {
PROC_NAME="outreach"
WSGI_SCRIPT="outreach.wsgi"
APACHE_VHOST_FILE="/etc/apache2/sites-available/default"
APACHE_VHOST_FILE="/etc/apache2/sites-available/000-default.conf"

sed -i "/<\/VirtualHost>/i \
WSGIScriptAlias / $ABS_PATH_DS/$WSGI_SCRIPT
Expand Down Expand Up @@ -766,3 +781,4 @@ setup_db
exit 0;
#+END_SRC


0 comments on commit e99505c

Please sign in to comment.