Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 1.56 KB

README.md

File metadata and controls

91 lines (68 loc) · 1.56 KB

RUN

I have created 2 branches: Master and Ubuntu

Use the Master branch for Macbook:


	$ mongod &
	$ python app.py

Please use the ubuntu branch for Ubuntu:


	$ python app.py

Installation with Vagrant and VirtualBox


  1. Install vagrant
  2. Install virtual box
  3. git clone https://github.com/andyleung/srx-report
  4. vagrant up
	$ vagrant up
	$ vagrant ssh
	# cd /vagrant
	# cd srx-report
	# python app.py

Manually build all the python libraries

  1. Update ubuntu:

		$ sudo apt-get update
		$ sudo apt-get install python-pip
  1. Install Mongodb:

		$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

		$ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

		$ sudo apt-get update
		$ sudo apt-get install -y mongodb-org
  1. Install Python Library:

		$ sudo pip install pymongo
		$ sudo pip install flask
		$ sudo apt-get install git
  1. A. Install Python lxml module:

		$ sudo apt-get install libxml2-dev libxslt-dev python-dev
		$ sudo pip install pycrypto
		$ sudo apt-get install zlib1g-dev
		$ sudo pip install lxml 
  1. B. Build junos-eznc:

		$ sudo pip install junos-eznc
  1. Install wkhtmltopdf

  1. To run:

%python app.py