Add a delorean-repo element

This element allows developers to use Yum repositories
generated via the Delorean tool. This is very useful
for testing upstream packages with TripleO element changes.

Change-Id: I290f1adc9631c1350b0cb7ad52b27b6759de05d8
This commit is contained in:
Dan Prince 2014-11-24 14:17:09 -05:00
parent 567c0f7dab
commit cb0a26cdcb
5 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Configure the image to pull packages from a Delorean repo
This element configures the image such that it downloads
packages from the specified Delorean repository. To use set
DELOREAN\_REPO\_URL to the Delorean repo you'd like to use.
This can be 'current' or any revision in the past that you'd
like to use. Example:
export DELOREAN\_REPO\_URL=http://localhost/~user/repos/current
Delorean is a tool that can be used to automate building upstream
packages:
https://github.com/openstack-packages/delorean
The Delorean tool currently supports Fedora packages and Yum
repositories. Support for other distributions may be added in
the future.

View File

@ -0,0 +1 @@
pkg-map

View File

@ -0,0 +1,5 @@
{
"default": {
"yum_plugin_priorities_package": "yum-plugin-priorities"
}
}

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
set -o xtrace
if [ -n "$DELOREAN_REPO_URL" ]; then
curl $DELOREAN_REPO_URL/delorean.repo -o /etc/yum.repos.d/delorean.repo
else
echo "Please configure a DELOREAN_REPO_URL."
exit 1
fi

View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
set -o xtrace
install-packages -m delorean-repo yum_plugin_priorities_package