Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Created November 6, 2014 18:00
Show Gist options
  • Save cloudnull/cc85846d9c5f049923ab to your computer and use it in GitHub Desktop.
Save cloudnull/cc85846d9c5f049923ab to your computer and use it in GitHub Desktop.
Glance Patch for Juno
#!/usr/bin/env bash
set -e -v
GLANCE_PATH="/opt/python-glanceclient_patched"
GLANCE_VERSION="0.14.1"
GLANCE_PATCH_REF="refs/changes/42/120442/1"
if [[ "$(pip list | grep glance)" ]]; then
if [[ ! -d "${GLANCE_PATH}" ]]; then
mkdir -p "${GLANCE_PATH}"
else
rm -rf "${GLANCE_PATH}"
mkdir -p "${GLANCE_PATH}"
fi
pushd "${GLANCE_PATH}"
git clone https://github.com/openstack/python-glanceclient "${GLANCE_PATH}"
git checkout "${GLANCE_VERSION}"
git fetch https://review.openstack.org/openstack/python-glanceclient "${GLANCE_PATCH_REF}"
git checkout FETCH_HEAD
popd
pip install "${GLANCE_PATH}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment