8000 feat(hubble): add jina hub pull cli by numb3r3 · Pull Request #2713 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(hubble): add jina hub pull cli #2713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
Jun 23, 2021
Merged

feat(hubble): add jina hub pull cli #2713

merged 40 commits into from
Jun 23, 2021

Conversation

numb3r3
Copy link
Member
@numb3r3 numb3r3 commented Jun 21, 2021
  • jina hub pull jinahub(+docker)://{UUID8}:{secret}
  • use jinahub+docker://{UUID8} in Flow, e.g.,
from jina import Flow

flow = Flow().add(uses='jinahub+docker://{UUID8}:{secret}')
with flow:
    flow.block()  # block the current process
  • use jinahub://{UUID8}:{secret} in Flow
from jina import Flow

flow = Flow().add(uses='jinahub://{UUID8}:{secret}')
with flow:
    flow.block()  # block the current process

┆Issue is synchronized with this Asana task by Unito

@numb3r3 numb3r3 requested review from hanxiao and nan-wang June 21, 2021 08:31
@numb3r3 numb3r3 requested a review from a team as a code owner June 21, 2021 08:31
@jina-bot jina-bot added size/L area/cli This issue/PR affects the command line interface area/core This issue/PR affects the core codebase area/entrypoint This issue/PR affects the entrypoint codebase area/helper This issue/PR affects the helper functionality area/network This issue/PR affects network functionality area/testing This issue/PR affects testing component/peapod labels Jun 21, 2021
@codecov
Copy link
codecov bot commented Jun 21, 2021

Codecov Report

Merging #2713 (5fcc814) into master (0094bbf) will increase coverage by 6.92%.
The diff coverage is 83.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2713      +/-   ##
==========================================
+ Coverage   82.21%   89.14%   +6.92%     
==========================================
  Files         106      155      +49     
  Lines        7064     9611    +2547     
==========================================
+ Hits         5808     8568    +2760     
+ Misses       1256     1043     -213     
Flag Coverage Δ
daemon 47.50% <83.11%> (?)
jina 89.36% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/__init__.py 71.21% <ø> (ø)
jina/checker.py 96.55% <ø> (ø)
jina/clients/__init__.py 100.00% <ø> (ø)
jina/clients/asyncio.py 100.00% <ø> (ø)
jina/clients/base.py 79.00% <ø> (ø)
jina/clients/grpc.py 100.00% <ø> (ø)
jina/clients/helper.py 100.00% <ø> (ø)
jina/clients/http.py 95.83% <ø> (ø)
jina/clients/mixin.py 100.00% <ø> (ø)
jina/clients/request/__init__.py 100.00% <ø> (ø)
... and 229 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1855c73...5fcc814. Read the comment docs.

@numb3r3 numb3r3 requested review from hanxiao, nan-wang and JoanFM June 22, 2021 11:18
Co-authored-by: Nan Wang <nan.wang@jina.ai>
Comment on lines 15 to 20
6D40
gp.add_argument(
'--docker',
action='store_true',
default=False,
help='If set, pull the Docker image from the Jina Hub registry',
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't id scheme already determined if it is docker or not?
id="jinahub+docker://..." -> --docker
id="jinahub://..." -> no --docker

then --docker is redundant

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, id in the argument refers to UUID8 only. jina hub pull {UUID8} will pull the uploaded executor package only.

So, here, the argument id should be used as the full uri path of the executor?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jina hub pull {UUID8} will pull the uploaded executor package only.

  1. isn't this then jinahub://{UUID}
  2. how is it differed from .add(uses="jinahub://uri")?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I submitted a new commit. Now, we can directly pass URI of executor, jina hub pull jinahub(+docker)://{UUID8}

@hanxiao hanxiao merged commit 6939945 into master Jun 23, 2021
@hanxiao hanxiao deleted the feat-hub-pull branch June 23, 2021 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli This issue/PR affects the command line interface area/core This issue/PR affects the core codebase area/entrypoint This issue/PR affects the entrypoint codebase area/helper This issue/PR affects the helper functionality area/network This issue/PR affects network functionality area/setup This issue/PR affects setting up Jina area/testing This issue/PR affects testing component/peapod size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0