Closed YueLiu1415926 closed 4 years ago
I think it must be due to the jina
image it has been built with? Can u try docker run minranker --uses !BaseExecutor
and then connect to the docker container to check the jina
version installed there?
it's jina 0.5.0, no problem with jina or python's version
The problem is PROBABLY because that we didn't install hub in docker image, and the config.yml
don't attempt to find executor in current path. So we need py_modules: to assign it
Say for MinRanker, I run
docker build -t minranker .
docker run minranker
then there will be an error saying 'could not determine a constructor for the tag !MinRanker'. The problem is for almost all executors, same error appears not only indocker run
, also when using them in examples.This could be solved adding
to the config.yml
For reference,
docker run -it --entrypoint=/bin/bash minranker
can entry the container to check┆Issue is synchronized with this Jira Task by Unito