Skip to content

A simple test of running Apache Thrift (with Python) in Docker Compose

Notifications You must be signed in to change notification settings

mattpaletta/thrift-test

Repository files navigation

thrift-test

To run on your own machine:

Ensure you have thrift installed. On the Mac, you can run
brew install thrift

Then to generate the thrift files:
thrift -r -gen py tutorial.thrift


Finally:
pip install -r requirements.txt

And open client.py, and change the line:
host='server', port=9090 to host='localhost', port=9090


Then open two terminals:

Terminal 1
python server.py

Terminal 2
python client.py

To run in docker:

docker-compose up --build Ah... Much simpler.

Releases

No releases published

Packages

No packages published