Technical requirements

The code listings in this book can be found under chapter12 directory at https://github.com/PacktPublishing/Hands-On-Enterprise-Application-Development-with-Python.

The code samples can be cloned by running the following command:

git clone https://github.com/PacktPublishing/Hands-On-Enterprise-Application-Development-with-Python

The requirements for the Python-based application can be installed by executing the following command on your Terminal:

pip install -r requirements.txt

Beyond the usual Python-based requirements, the code samples in this chapter need to have the following additional dependencies to work correctly:

  • Docker: The docker client is required to run some of the tools that we will be using inside the repository. The installation instructions for docker related to your platform can be found at https://docs.docker.com/install/.
  • Jaeger all-in-one image: For our distributed tracing examples, we will be utilizing Jaeger, which provides us with an Opentracing compatible library. For the demo, we can utilize the Jaeger all-in-one image that utilizes docker to run the Jaeger server, agent, and client to gather the tracing data and provide visualizations for the same. The Jaeger all-in-one image can be set up by running the following command:
docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp 
-p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest

Once the Jaeger all-in-one package is set up, make sure to visit http://localhost:16686 to verify if the Jaeger UI opens up correctly.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.240.244