Project

General

Profile

Install myami-22 on guppy » History » Revision 4

Revision 3 (Sargis Dallakyan, 09/10/2012 11:47 AM) → Revision 4/7 (Sargis Dallakyan, 09/10/2012 11:48 AM)

h1. Install myami-2.2 on guppy (work in progress...) 

 The following describes myami-2.2 installation on guppy running CentOS 6. 

 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. 

 We use attachment:myami-2.2.spec to build rpm package for myami-2.2.spec.  
 <pre> 
 Name:             myami 
 Version:          2.2 
 Release:          757 
 Source0:          %{name}-%{version}.tar.gz 
 License:          Apache 
 Summary:          Data collection and procession processing tools for EM 
 Vendor:           NRAMM/Scripps Research Institute AMI Group 
 URL:              http://nramm.scripps.edu 
 Group:            Applications/Engineering and Scientific 
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root 
 AutoReq:          0 
 Prefix: 		 /opt/%{name}-%{version} 
 ... 
 </pre> 
 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.  

 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: 
 <pre> 
 specFile = '/root/rpmbuild/SPECS/myami-2.2.spec' 
 </pre> 
 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: 
 <pre> 
 workingDir = '/root/src/myami-2.2' 
 </pre> 
 This workingDir where we need to checkout myami-2.2 files to: 
 <pre> 
 cd /root/src 
 svn co http://emg.nysbc.org/svn/myami/branches/myami-2.2 
 </pre> 
 In order to run buildMyamiSnapshot-2.2.py nightly, add the following to /var/spool/cron/root: 
 <pre> 
 55 22 * * * /root/bin/buildMyamiSnapshot-2.2.py 
 </pre> 

 h1. Summary 

 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, package for myami-2.2, and install myami-2.2 under /opt/myami-2.2.