A very basic web application using the CherryPy framework and Python 3.5. The image is quite light thanks to Official python image.
$ docker run --name cpy --rm -d -p 8081:8081 avimehenwal/auto-cherrypy-app
You can point your browser to http://locahost:8080/
$ docker logs --follow cpy
$ docker stop cpy
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
- 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
- Create a swarm cluster with 2 or 3 nodes
- Deploy application as a service
- Scale up/down
- Install Rolling updates
- https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7
- http://docs.cherrypy.org/en/latest/advanced.html#restful
- https://docs.google.com/presentation/d/1pVtqh99VfmOycus9OoY19jemSYPsXbdia-v2szT7Vs0/edit#slide=id.g229197c9_0_29
- https://www.ibm.com/developerworks/library/ws-restful/index.html