Ubuntu dependeces, in another distro the names can change
sudo apt-get install git sudo apt-get install python-setuptools sudo apt-get install python-dev sudo apt-get install libssl-dev sudo apt-get install mongodb sudo easy_install pip sudo pip install virtualenv
git clone [email protected]:gecos-team/gecoscc-ui.git cd gecos-team virtualenv vgecoscc-ui source vgecoscc-ui/bin/activate python setup.py develop
admin.pem file is the pem of the chef administrator, you should get it from the Chef server machine
- Enable virtual enviroment
source vgecoscc-ui/bin/activate
- Create an administrator
pmanage config-templates/development.ini create_chef_administrator -u new_admin -e [email protected] -a admin -k admin.pem -n -s
- Import policies
pmanage config-templates/development.ini import_policies -a admin -k chef-server/admin.pem
- Update printers
pmanage config-templates/development.ini update_printers
- Synchronize repositories
pmanage config-templates/development.ini synchronize_repositories
source vgecoscc-ui/bin/activate pserve config-templates/development.ini
source vgecoscc-ui/bin/activate python setup.py test
source vgecoscc-ui/bin/activate python setup.py develop pip install -r test_requirements.txt vgecoscc-ui/bin/nosetests --cover-html --cover-html-dir=/tmp/report