You are here: TWiki > SoftwareTeam Web>InternalDocs>VDTRPMBuildBox (04 Oct 2011, AlainRoy?)
%LINKCSS%

Installing a OSG Build Box

Installing additional Repos

For a build box, you need the repos: EPEL, JPackage and OSG.

  1. Install EPEL:
    [root@client ~]$ wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    [root@client ~]$ rpm -i epel-release-5-4.noarch.rpm 
  2. Install JPackage:
    [root@client ~]$ yum -y install yum-priorities
    [root@client ~]$ rpm -Uvh http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/jpackage-release-5-4.jpp5.noarch.rpm
    
  3. Edit the /etc/yum.repos.d/jpackage.repo, replacing $releasever with '5', just the number 5. There are 2 locations, only the location in url is what matters.
  4. Install the OSG Yum Repository
    [root@client ~]$ rpm -Uvh http://repo.grid.iu.edu/osg-release-latest.rpm 
    

Installing the osg-build tool

osg-build is used to build OSG packages. It is a wrapper for tools like rpmbuild and mock.

[root@client ~]$ yum --enablerepo=osg-development install osg-build

Checking out the package source from subversion

Current work is done in subversion. The command to check out the subversion is:
[user@client ~]$ svn co https://vdt.cs.wisc.edu/svn/native vdt-native

Setting up Mock

Install mock (should be brought in by osg-build in newer builds):
[root@client ~]$ yum -y install mock

Add your user to the mock group. Edit /etc/group, adding your username (as returned by id) to the mock line:

mock:x:109:username

Performance Suggestions

It is suggested that mock builds are done in ram. Mock build are all conducted under /var/lib/mock/. Mounting that directory in ram will cause builds to be much faster.

An example mount command:

[root@client ~]$ mount -t tmpfs -o size=3072m tmpfs /var/lib/mock

Enabling OSG-Development Repo by default (optional)

Edit /etc/yum.repos.d/osg-development.repo, changing enabled to 1.
[osg-development]
name=OSG Software for Enterprise Linux 5 - Development - $basearch 
mirrorlist=http://repo.grid.iu.edu/mirror/osg-development/$basearch
failovermethod=priority
priority=98
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-OSG
Topic revision: r8 - 04 Oct 2011 - 19:53:13 - AlainRoy?
Hello, TWikiGuest
Register

 
TWIKI.NET

TWiki | Report Bugs | Privacy Policy

This site is powered by the TWiki collaboration platformCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors..