Install myami-22 on guppy » History » Version 6
Sargis Dallakyan, 09/10/2012 11:53 AM
1 | 6 | Sargis Dallakyan | h1. Instructions for myami-2.2 Processing Server Install on CentOS 6 |
---|---|---|---|
2 | 1 | Sargis Dallakyan | |
3 | 3 | Sargis Dallakyan | Before we start, make sure to "set up an RPM build environment under CentOS":http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment. Notice that "rpmbuild is building in /root/rpmbuild":http://help.directadmin.com/item.php?id=381 on CentOS 6. |
4 | 1 | Sargis Dallakyan | |
5 | 3 | Sargis Dallakyan | We use attachment:myami-2.2.spec to build rpm package for myami-2.2.spec. |
6 | 1 | Sargis Dallakyan | <pre> |
7 | 3 | Sargis Dallakyan | Name: myami |
8 | Version: 2.2 |
||
9 | Release: 757 |
||
10 | Source0: %{name}-%{version}.tar.gz |
||
11 | License: Apache |
||
12 | Summary: Data collection and procession processing tools for EM |
||
13 | Vendor: NRAMM/Scripps Research Institute AMI Group |
||
14 | URL: http://nramm.scripps.edu |
||
15 | Group: Applications/Engineering and Scientific |
||
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
||
17 | AutoReq: 0 |
||
18 | Prefix: /opt/%{name}-%{version} |
||
19 | ... |
||
20 | 1 | Sargis Dallakyan | </pre> |
21 | 3 | Sargis Dallakyan | The "Prefix":http://www.rpm.org/max-rpm/s1-rpm-reloc-prefix-tag.html tag here shows that, by default, rpm will install our files under /opt/myami-2.2. |
22 | |||
23 | For our automated build procedure we use attachment:buildMyamiSnapshot-2.2.py. Line 6 in buildMyamiSnapshot-2.2.py defines where myami-2.2.spec is stored: |
||
24 | <pre> |
||
25 | specFile = '/root/rpmbuild/SPECS/myami-2.2.spec' |
||
26 | </pre> |
||
27 | In other words, we need to store attached myami-2.2.spec under /root/rpmbuild/SPECS. Line 7 in buildMyamiSnapshot-2.2.py defines workingDir as: |
||
28 | <pre> |
||
29 | workingDir = '/root/src/myami-2.2' |
||
30 | </pre> |
||
31 | This workingDir where we need to checkout myami-2.2 files to: |
||
32 | <pre> |
||
33 | cd /root/src |
||
34 | svn co http://emg.nysbc.org/svn/myami/branches/myami-2.2 |
||
35 | </pre> |
||
36 | In order to run buildMyamiSnapshot-2.2.py nightly, add the following to /var/spool/cron/root: |
||
37 | <pre> |
||
38 | 55 22 * * * /root/bin/buildMyamiSnapshot-2.2.py |
||
39 | </pre> |
||
40 | |||
41 | h1. Summary |
||
42 | |||
43 | 4 | Sargis Dallakyan | Attached myami-2.2.spec and buildMyamiSnapshot-2.2.py are used get the latest myami-2.2 files from SVN, build and create rpm package, and install myami-2.2 under /opt/myami-2.2. |