Build the Framework Packages
Prerequsites
Make sure
git
andmock
are installed- Your user must be in
mock
group All users that are to use mock must be added to the 'mock' group. To add a user to the group, use this command as root:
usermod -a -G mock [User name] && newgrp mock
- Install RVM and
ruby
1.9 and 2.1 (but not 1.8 or 2.2) - 60G of space in /var/lib/mock
- The
gpg
executable must be in the user's path (RHEL/Fedora package:gnupg)
Build SIMP!
Run git clone https://github.com/simp/simp-core
cd into
simp-core
Run
git checkout 4.2.X
Runbundle
note: if you do not have it installed, rungem install bundler
note: if you are not running as root, you must bundle install --path vendor/bundleRun
rake git:submodules:reset
Cross your fingers
You may need to run a for loop to find Gemfiles and run 'bundle' wherever they are at this point, we have a task on the backlog to fix this
Run
rake tar:build[epel-6-x86_64,dev,false]
(builds for RHEL6, dev key, no docs)
Build the ISO
Download all of the required packages for the build.
- cd into simp-core
- Run rake build:yum:sync[<CentOS or RHEL>,<os_version>,<simp_version>,<architecture>]
- Optionally, you may drop in custom packages you wish to have available during an install into build/yum_data/SIMP<simp_version>_<CentOS or RHEL><os_version>_<architecture>/packages
cd to the directory holding the ISO images
Create a directory called
orig
cd into
orig
Run
BUNDLE_DIRECTORY=/path/to/simp-core rake -f /path/to/simp-core/Rakefile unpack["/path/to/ISO1"]
Repeat this step for any additional ISOs
Run
cd ..
Run
mkdir 4.2.X
Run
cd 4.2.X
Run
cp -rl ../orig/*6.6* .
Run
BUNDLE_DIRECTORY=/path/to/simp-core rake -f /path/to/simp-core/Rakefile iso:build["/path/to/simp-core/build/DVD_Overlay/<appropriate>.tar.gz"]
(At this time, we have some repoclosure issues that we need to work through so the ISO may not build)