jina-ai / serve

☁️ Build multimodal AI applications with cloud-native stack
https://jina.ai/serve
Apache License 2.0
21.13k stars 2.22k forks source link

Run a Flow with ECR docker image #4965

Closed hsalehgh closed 2 years ago

hsalehgh commented 2 years ago

First of all, thank you for such a nice framework for building scalable neural search engines. I would like to dockerize my own executor and push it to AWS ECR. So I am not sure how to define in in flow. For example: Flow().add(uses='AWS_ACCOUNT.dkr.ecr.us-east-2.amazonaws.com/app:4.2') is not working. If docker is in my local machine I can do Flow().add(uses='docker://my_containerized_executor') or if it is in jina hub then I can do Flow().add(name='encoder', uses='jinahub+docker://CLIPEncoder') but I don't know the syntax for ECR AWS docker file.

deepankarm commented 2 years ago

Hey @hsalehgh, you can find the image uri for any image in ECR, by going to the image details. For example :point_down: , and then you can pass uses: docker://{uri_from_ecr}

image

hsalehgh commented 2 years ago

Great! Thanks