Sign inSign up

rshriram/pymicro

By rshriram

•Updated almost 11 years ago

Python based microservice using Zookeeper for service discovery

Image
2

1.7K

rshriram/pymicro repository overview

This is a very rudimentary microservice image based on python's bottle.py, using zookeeper for service discovery.

⁠Building from source

docker build -t rshriram/pymicro .

⁠Deploying the setup

Start the microservices specifying zookeeper location and the service name. The names of services can be found in service_dict in the server.py file

docker run -d -e SERVICE_NAME=serviceA -e ZOOKEEPER=host:2181 rshriram/pymicro

Testing

curl -o - http://127.0.0.1:9080/bottle/all/view

You should receive a collated response from master, that contains responses from services A, B and C and their sub-services

Tag summary

Content type

Image

Digest

sha256:9277b12f1…

Size

160.6 MB

Last updated

about 11 years ago

docker pull rshriram/pymicro