Voting App
this application is based on Docker's example voting app.
| MicroService | Status |
|---|---|
| Vote | |
| Worker | |
| Result |
- A Python webapp which lets you vote between two options
- A Redis queue which collects new votes
- A .NET worker which consumes votes and stores them in…
- A Postgres database backed by a Docker volume
- A Node.js webapp which shows the results of the voting in real time
####* http://blog.terranillius.com/post/composev3_swarm/
####Perquisites:
- Fork this repository.
- Add this repository to your Codefresh account.
- Set your Docker registry (Docker Hub, GCR etc.) in your account admin. This is in case you want to push.
(If you don't want to set the credentials in the admin or want to use a different credentials see example push.with.credentials.yml in the vote folder.)
####Build and Push each service separately:
- Go to The Service settings

- Create 3 services: vote, result and worker.
- Set each service's
Use YML buildproperty toON. Optional: setAdd webhooksto on. This will trigger build on every commit. - Set the YML location to
./vote/codefresh.build.and.push.ymlfor thevoteservice. Do the same for each one of the other services, and just change thevotetoresultorworker.
- You can now press Build for each one of the pipelines that you want. Just select which one on the dropdown.

####Build and Push all the services: If you want to create on build for all the services you can just add one service with a yaml that will build all of them.
- Go to The Service settings

- Create only one service
- Set service's
Use YML buildproperty toON. - Set the YML location to
./codefresh.yml. - You can now press Build and build your service.

Containers 101 is online/offline meetup group based in Mountain View that provides guides and helps developers work with Containers. Created by Codefresh which provides environments for every commit, Docker CI and CD, and an embedded registry.
Join Containers 101 Learn more about Codefresh
