From Fedora Project Wiki

(add local repo stuff)
m (fix layout)
Line 5: Line 5:
We must create a local RPM repository in order to include our custom programs, this is the most effective way of adding custom applications into a BoxGrinder appliance.  All of the hard work of dependency resolution is done via the RPMs!
We must create a local RPM repository in order to include our custom programs, this is the most effective way of adding custom applications into a BoxGrinder appliance.  All of the hard work of dependency resolution is done via the RPMs!
# Create a directory tree of <code>/var/repo/RPMS/noarch/</code>
# Create a directory tree of <code>/var/repo/RPMS/noarch/</code>
# Download the BoxGrinder test RPM file (<code> wget --directory-prefix=/var/repo/RPMS/noarch http://www.boxgrinder.org/testday/ephemeral-test.rpm</code>) to <code>/var/repo/RPMS/noarch/</code>
# Download the [[http://www.boxgrinder.org/testday/ephemeral-test.rpm|BoxGrinder test RPM file]] to <code>/var/repo/RPMS/noarch/</code> (<code>wget --directory-prefix=/var/repo/RPMS/noarch http://www.boxgrinder.org/testday/ephemeral-test.rpm</code>)
# Execute <code>createrepo /var/repo/RPMS/noarch</code>
# Execute <code>createrepo /var/repo/RPMS/noarch</code>



Revision as of 13:02, 22 April 2011

Description

Build an appliance based upon the modular appliances, which are designed to provide more comprehensive BoxGrinder Build feature coverage.

Setup

Clone the BoxGrinder test appliances into a convenient location using command git clone https://github.com/msavy/boxgrinder-appliances.git

We must create a local RPM repository in order to include our custom programs, this is the most effective way of adding custom applications into a BoxGrinder appliance. All of the hard work of dependency resolution is done via the RPMs!

  1. Create a directory tree of /var/repo/RPMS/noarch/
  2. Download the [test RPM file] to /var/repo/RPMS/noarch/ (wget --directory-prefix=/var/repo/RPMS/noarch http://www.boxgrinder.org/testday/ephemeral-test.rpm)
  3. Execute createrepo /var/repo/RPMS/noarch

How to test

  1. Navigate to directory boxgrinder-appliances/testing-appliances/modular-appls/
  2. Execute boxgrinder-build fedora_rawhide.appl

Expected Results

The following must be true to consider this a successful test run.

  1. Step #2 completes without error (indicated on console)
  2. Program completes with exit code 0