Skip to content

prgcont/demo-voting-ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo for Voting app on top of OpenShift

It comprises of 3 repos:

Each represents a container which serves single purpose:

  • Result App - displays results from Postgres
  • Voting App - let's people vote and stores in Redis
  • Worker - processes queue in Redis and pushes data to Postgres

Other (already mentioned) containers in the system are:

  • Redis - queue of votes
  • Postgres - "permanent" sotrage of results

This is based on https://github.com/alexvanboxel/k8s-docker-vote and addapted to work well with OpenShift

How to Run

  1. Login in to OpenShift and create a project
  2. Run ./deploy.sh
  3. A lot of resources should be created in OpenShift
  4. Watch whole app start
  5. Vote;)

To try Blue/Green deployment of voting-app, run ./deploy.sh blue-green

Ops Details

All images are built in OpenShift with use of s2i builds. All deployments are then triggered by new build. You can automate builds by using webhooks - e.g.

oc describe bc voting-app-worker | grep generic | grep URL | sed 's/\s*URL:\s*//'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages