Sign inSign up

avimehenwal/auto-cherrypy-app

By avimehenwal

•Updated over 8 years ago

Automated cherrypy-app build

Image
0

1.3K

avimehenwal/auto-cherrypy-app repository overview

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

Tag summary

Content type

Image

Digest

Size

263.8 MB

Last updated

over 8 years ago

docker pull avimehenwal/auto-cherrypy-app