-
Notifications
You must be signed in to change notification settings - Fork 16
Test staging VM from backend
atziasios edited this page Aug 11, 2015
·
1 revision
- Upgrade pip, if needed
sudo pip install --upgrade pip
- Clone repo with committed code
cd ~/Workspace
git clone https://github.com/{{repo_name}}/e-science.git {{test_dir}}
- Install virtualenv, if needed
#skip if already done
sudo pip install virtualenv
mkdir ~/.virtualenvs
- Run commands inside virtualenv
virtualenv --system-site-packages ~/.virtualenvs/orkaenv
. ~/.virtualenvs/orkaenv/bin/activate
#with deactivate from command line you exit the virtual env
- Add functional VM in ~/.kamakirc
[orka]
base_url = http://{{VM's IP}}
- Install orka
cd ~/Workspace/{{test_dir}}/orka
#important: run inside orka directory
sudo python setup.py install
- Issue orka_create commands which will be executed on staging VM (contained in kamakirc orka base_url)
#e.g.: create dspace vre
orka vre create {{vre_vm_name}} 2 2048 10 Standard escience.grnet.gr DSpace-5.3 --admin_password={{adminPassword}} --admin_email={{admin_email}}
- In the end deactivate virtualenv
deactivate