OpenShift Python project for Cloud Computing Exercise #4
This is a hello world Python project that deploys on RedHat's OpenShift Developer Preview
-
Register with Github at https://api.preview.openshift.com/
-
Get a token to log in: https://api.preview.openshift.com/oauth/token/request
-
Install oc: https://console.preview.openshift.com/console/command-line
-
Try the Console: https://console.preview.openshift.com/console/
-
Create a new Project
-
Add a Python2.7 component
-
Make a github repo for your component with these files:
- app.py - must start a service that listens on port 8080 forever
- requirements.txt - extra python dependencies
-
Add new Python2.7 component in the OpenShift dashboard with your github repo's url
-
Add OpenShift's webhook url to your github repo
-
push more changes to your repo, OpenShift will rebuild it
-