Difference between revisions of "Dirac Development"
From GridPP Wiki
(→Dirac in a box) |
(→Dirac in a box) |
||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
* Install git (and emacs ;-). | * Install git (and emacs ;-). | ||
+ | * Set git up correctly: | ||
+ | <pre> | ||
+ | git config --global user.name "Your Name" | ||
+ | git config --global user.email you@example.com | ||
+ | </pre> | ||
* Make a dirac user and copy the hostcert/key into .globus | * Make a dirac user and copy the hostcert/key into .globus | ||
* You also need the ssh key you use on github | * You also need the ssh key you use on github | ||
Line 18: | Line 23: | ||
* <pre> ./dirac_in_a_box.py /opt/dirac/ git@github.com:ic-hep </pre> | * <pre> ./dirac_in_a_box.py /opt/dirac/ git@github.com:ic-hep </pre> | ||
* Ignore "Exception _mysql_exceptions.ProgrammingError" errors | * Ignore "Exception _mysql_exceptions.ProgrammingError" errors | ||
+ | * ... branching ... | ||
== Get the code == | == Get the code == |
Revision as of 15:20, 29 September 2014
Official Documentation
GitSetup
DeveloperInstallation
AddingNewComponents
Dirac in a box
- Setup yourself up with a hostcert and a EMI UI, eg by following these instructions.
- Open the relevant ports:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 9130:9200 -j ACCEPT
- Install git (and emacs ;-).
- Set git up correctly:
git config --global user.name "Your Name" git config --global user.email you@example.com
- Make a dirac user and copy the hostcert/key into .globus
- You also need the ssh key you use on github
- To save you from typos (the script does not deal well with that :-D ) use "ssh-add -t 1h"
- wget http://www.hep.ph.ic.ac.uk/~dbauer/dirac/dirac_in_a_box.py
-
./dirac_in_a_box.py /opt/dirac/ git@github.com:ic-hep
- Ignore "Exception _mysql_exceptions.ProgrammingError" errors
- ... branching ...
Get the code
- You need a github account and be a member of the ic-hep organization. Please contact Simon F. directly if you need access.
- Then you need to fork the repo
- In the example I'm using my own github login 'marianne013'(*) as I like to be able to do cut-and-paste when following my own instructions.
- As the dirac user do:
git clone git@github.com:marianne013/DIRAC.git
(from git page ssh). This will only work if the dirac user has a copy of your ssh key :-D
-
DIRAC/Core/scripts/dirac-deploy-scripts.py
-
wget http://www.hep.ph.ic.ac.uk/~dbauer/dirac/full_sanitized.cfg
- edit full_sanitized.cfg
- Normal machine set-up (symlinking /etc/grid-security/certificates, etc...)
- Checkout DIRAC
DIRAC/Core/scripts/dirac-deploy-scripts.py wget http://www.hep.ph.ic.ac.uk/~dbauer/dirac/full_sanitized.cfg
- Edit full_sanitized.cfg
- Set Release = integration
- Set UseVersionsDir = no
- Edit TargetPath = /srv/localstage/ddirac
- Set ExtraModules = DIRACWeb
- Set SiteName etc...
- Comment Out WorkloadManagement/InputDataAgent
- Comment Out WorkloadManagement/TaskQueueDirector
- Turn off web interface
- Set DB Passwords
scripts/dirac-install -t server -X full_sanitized.cfg source bashrc dirac-configure -F full_sanitized.cfg dirac-install-mysql dirac-setup-site
(*) The first hit when putting Marianne013 into google entitled: "Marianne 013: Kühe in Ketten und Strapsen" which translates into "Cows in chains and suspenders." It's all downhill from there.