Skip to content

avimehenwal/cherrypy-app

Repository files navigation

CircleCI

CHERRYPY-APP

A very basic web application using the CherryPy framework and Python 3.5. The image is quite light thanks to Official python image.

Application in action

RUN

$ docker run --name cpy --rm -d -p 8081:8081 avimehenwal/auto-cherrypy-app

You can point your browser to http://locahost:8080/

LOGS

$ docker logs --follow cpy

STOP

$ docker stop cpy

DEMO

asciicast

NOTES

To store, persist and query data you need a proper database server. There exist many to choose from with various paradigm support:

  • relational: PostgreSQL, SQLite, MariaDB, Firebird
  • column-oriented: HBase, Cassandra
  • key-store: redis, memcached
  • document oriented: Couchdb, MongoDB
  • graph-oriented: neo4j

ISSUES

  1. Unable to run app with cherryd both on local and inside docker. python app.py - works good within container provided host and port are supplied cherryd app.py

SWARM DEPLOYMENT

  1. Create a swarm cluster with 2 or 3 nodes
  2. Deploy application as a service
  3. Scale up/down
  4. Install Rolling updates

RESTful