difio-openshift-python

Difio registration agent for OpenShift / Python applications
Download

difio-openshift-python Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Alexander Todorov
  • Publisher web site:
  • http://monupco.com

difio-openshift-python Tags


difio-openshift-python Description

difio-openshift-python is a Difio registration agent for OpenShift / Python applications.It compiles a list of locally installed Python packages and sends it to http://www.dif.io.Installing on your OpenShift applicationCreate an account at http://www.dif.ioCreate a Python application on OpenShiftrhc-create-app -a myapp -t python-2.6Add a dependency in your setup.py filefrom setuptools import setupsetup( name='MyApplication', version='1.0', install_requires=, )Set your userID in the ./data/DIFIO_SETTINGS filecd ./myapp/echo "export DIFIO_USER_ID=YourUserID" > ./data/DIFIO_SETTINGSOpenShift by default will treat your application as a package. If the name given in setup.py is different from the name passed to rhc-create-app command then set the application name in the ./data/DIFIO_SETTINGS fileecho "export DIFIO_APP_NAME='MyApplication'" >> ./data/DIFIO_SETTINGSThis registration script will ignore package names that match the value of OPENSHIFT_GEAR_NAME and DIFIO_APP_NAME environment variables.Enable the registration script in .openshift/action_hooks/post_deploy# Activate VirtualEnv in order to use the correct librariessource $OPENSHIFT_GEAR_DIR/virtenv/bin/activate# Set user defined settingssource $OPENSHIFT_REPO_DIR/data/DIFIO_SETTINGS# Register/update the applicationpython $OPENSHIFT_GEAR_DIR/virtenv/bin/difio-openshift-pythonThen push your application to OpenShiftgit pushThat's it, you can now check your application statistics at http://www.dif.ioProduct's homepage


difio-openshift-python Related Software