A simple cherrypy app
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
RWA
public
.gitignore
.gitlab-ci.yml
Dockerfile
LICENSE
README.md
Test_Dockerfile
ajax.py
app.conf
app.py
docker-compose.yml
helloworld.py
index.html
persistent_data.py
requirements.txt
rest.py
run.sh
server.conf
test_app.py

README.md

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