jython-on-dotcloud custom service
This is a beta version of the custom Jython service on dotCloud. It is very basic, and pretty much just a proof of concept, but it should show you what you need to do in order to get off the ground.
The example here is using Jython and the Rocket web server to serve up a simple wsgi hello world app. Most people wouldn't be using Jython like this, but we wanted to show you it could be done. You could use the same idea to run Jython workers, or any other Jython process.
Feel free to use, but keep your eyes open for issues. If you find any issues please report them.
How it works
We are using nginx as the front end reverse proxy, it is serving all static media as well proxying all other requests to a rocket web server process running a simple wsgi application running on Jython.
How to use
Clone this repo:
$ git clone git://github.com/kencochrane/jython-on-dotcloud.git
Create a dotcloud app (assuming you already have a dotcloud account and have the dotcloud client installed):
$ dotcloud create jythonapp
Makes changes to the repo locally, git commit your changes
Push your app to dotcloud:
$ dotcloud push jythonapp .
- Jython 2.5.2
- java 1.6.0_20
- nginx 1.0.13
- Rocket 1.2.4