-
Notifications
You must be signed in to change notification settings - Fork 46
/
README.OOI_hosted_VM
73 lines (53 loc) · 2.16 KB
/
README.OOI_hosted_VM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
The OOI hosted VM image comes with a demo account pre-installed with
coi-services and ion-ux under the account ooici.
This should serve as a reference install to verify the VM is working as expected.
To setup our environment on this VM (assuming using your own account) follow the
following steps.
1. Setup a github account:
https://confluence.oceanobservatories.org/display/CIDev/Github+Account+Setup
2. Clone the repository:
git clone [email protected]:ooici/coi-services.git
3. Go into the coi-services directory:
cd coi-services/
4. Download the submodules needed by the system:
git submodule update --init
5. Create a virtual environment to work in:
mkvirtualenv --no-site-packages coi
Virtualenv for python allows a user to install packages without installing
them to privileged system directories. The benefit of this is that an
environment can be easily discarded and rebuilt without tainting the base
system.
The 2 key commands to know when working with virtualenv's is
mkvirtualenv -- creates a new virtual environment
workon -- loads in an existing virtual environment.
6. Install 2 packages needed inside the virtual environment:
pip install -U setuptools==0.8
pip install numpy==1.7.1
7. Inform the system about postgres account details by defining them in a
config file.
vi res/config/pyon.local.yml
For the ooi created VM's this file should look like:
system:
name: your_favorite_name
server:
postgresql:
username: ion
password: ion
admin_username: ion
admin_password: ion
Alternatively, it can be coppied from the ooici home directory to your
res/config directory by doing:
cp ~ooici/pyon.local.yml res/config/
8. Build the system:
python bootstrap.py -v 2.2.0
bin/buildout
bin/generate_interfaces
9. Check that you have a good install:
bin/nosetests -a SMOKE
If none of these tests fail/error, then it is safe to assume you have
a working install.
10. OOI guidelines on using GIT:
Prior to following this guide, it is assumed you have already
performed:
git remote rename origin ooici
https://confluence.oceanobservatories.org/display/CIDev/Transition+from+Release+2.0+to+Pre-Release+3.