Skip to content

Instantly share code, notes, and snippets.

@markllama
Last active December 15, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markllama/5222431 to your computer and use it in GitHub Desktop.
Save markllama/5222431 to your computer and use it in GitHub Desktop.
Tweak RPM and gem requirements for OpenShift Origin broker on Fedora 18
#!/bin/sh
#
# After the OpenShift broker is installed on Fedora 18, there are some
# remaining tasks before you can actually start configuring it.
#
# These are primarily due to gems or packages that have not yet made it into the
# Fedora 18 distribution and updates.
#
# This is as of 2013-03-22, expect changes.
#
SUDO=sudo
#
# It appears that rubygem-mongoid is not yet available as an RPM from Fedora 18
#
if ! (gem list --local | grep -q mongoid)
then
echo "Missing rubygem - mongoid: installing"
${SUDO} gem install mongoid
fi
#
# The Gemfile for the broker has specific version requirements which don't seem
# to match what's available by RPM
#
echo "removing version requirements for gems"
${SUDO} sed -i -f - <<EOF /var/www/openshift/broker/Gemfile
/parseconfig/s/,.*//
/minitest/s/,.*//
/rest-client/s/,.*//
/mocha/s/,.*//
/rake/s/,.*//
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment