aws-containers / eks-app-mesh-polyglot-demo

End to end deployment and observability of polyglot microservices in Amazon EKS using AWS App Mesh, AWS Fargate, Amazon Cloudwatch Container Insights, and AWS X-Ray
MIT No Attribution
64 stars 636 forks source link

Hardset Python 3.9 #3

Closed ollypom closed 2 years ago

ollypom commented 2 years ago

The official python:3 image now points to python 3.10. This appears to break the application as you receive ImportError: cannot import name 'Hashable' from 'collections' errors when the container starts.

This PR hard sets the python version to 3.9 where Hashable can still be find in the collections package. I have also switched to the slim variant of the image to speed up Fargate boot times. The downside of using the slim variant is that curl is not installed by default. As the workshop makes use of the curl command I've added that back in with apt. Previous compressed image size 383.89mb, new compressed image size 80.61mb.

ollypom commented 2 years ago

@praseedasathaye PTAL.

Thanks :)