-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.TXT
105 lines (59 loc) · 2.56 KB
/
README.TXT
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
SEE: https://portal.futuregrid.org/manual/dev/soft-deploy
https://portal.futuregrid.org/manual/dev/soft-deploy/fg-shell
https://portal.futuregrid.org/manual/dev/soft-deploy/fg-repo
For more information
The page here will be at one point merged into theabove pages
REQUIREMENTS
====================
Python 2.6.x
-------------
check while just typing in python on the commandline
(make prg out of it, integrate in shell)
(check at instalation)
Install cmd2 in your local python instalation
1. Check if cmd2 is installed with the following command
python -c "import cmd2;"
If it is not installed (it will say ImportError: No module named cmd2)
please install it.
or simply do easy_install -U cmd2
In future we will have an egg that resolves dependencied and installes also cmd2 automatically)
wget http://pypi.python.org/packages/2.6/c/cmd2/cmd2-0.6.2-py2.6.egg#md5=4c1804bdb53acd313ef83d150ed1cc46
sudo easy_install cmd2-0.6.2-py2.6.egg
This will install cmd2 in your default python systems libarry
INSTALATION OF THE FG CODE
==============================
1. Please create a directory, where you place the FG source code.
set $FG_PATH=
mkdir -p $FG_PATH
cd $FG_PATH
svn checkout https://futuregrid.svn.sourceforge.net/svnroot/futuregrid/core/trunk/src/futuregrid/
cp futuregrid/fg.py .
set $FG_PATH=`cwd`/futuregrid
in bash
export FG_HOME=`pwd`
The file
/opt/futuregrid/futuregrid/fg.py
must be copied to /opt/futuregrid and will be the futuregrid
executable (we need to look into that, to leave only one futuregrid).
The var directory will be in the server side and is useful to keep the
log files and mysql password. Everyone need to have write access.
Other configuration details may be needed. Thus, each component will
have a README.txt file.
For testing purpose, please add your ssh-key to your local
.ssh/authorized_keys because the Image Repository uses ssh to executer
commands in the server side (localhost). And execute ssh-add TBD
INSTALATION OF THE IMAGE REPOSITORY
========================================
see: https://portal.futuregrid.org/fg-image-repository-deployment
APPENDIX
TODO: on OSX describe how to use curl instead of wget
TODO: FInd out a way to check if cmd2 is already installed
INSTALLING CODE BEAUTIFIERS
===========================
sudo easy_install pep8
sudo easy_install pylint
see: http://pypi.python.org/pypi/pep8
http://www.logilab.org/card/pylint_manual
Integration into Pydev/eclipse
pylint: http://pydev.org/manual_adv_pylint.html
pep8: http://stackoverflow.com/questions/399956/how-to-integrate-pep8-py-in-eclipse