jina.docker.hubio

class jina.docker.hubio.HubIO(args)[source]

Bases: object

HubIO provides the way to interact with Jina Hub registry. You can use it with CLI to package a directory into a Jina Hub image and publish it to the world.

Examples:
  • jina hub build my_pod/ build the image

  • jina hub build my_pod/ --push build the image and push to the public registry

  • jina hub pull jinahub/pod.dummy_mwu_encoder:0.0.6 to download the image

new()[source]

Create a new executor using cookiecutter template

Return type

None

login()[source]

Login using Github Device flow to allow push access to Jina Hub Registry

Return type

None

list()[source]

List all hub images given a filter specified by CLI

Return type

Dict[str, Any]

push(name=None, readme_path=None, build_result=None)[source]

A wrapper of docker push - Checks for the tempfile, returns without push if it cannot find - Pushes to docker hub, returns withput writing to db if it fails - Writes to the db

Return type

None

pull()[source]

A wrapper of docker pull

Return type

None

build()[source]

A wrapper of docker build

Return type

Dict

dry_run()[source]
Return type

Dict

create()

Create a new executor using cookiecutter template

Return type

None

init()

Create a new executor using cookiecutter template

Return type

None