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
-
login
()[source]¶ Login using Github Device flow to allow push access to Jina Hub Registry
- Return type
None
-
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
-
create
()¶ Create a new executor using cookiecutter template
- Return type
None
-
init
()¶ Create a new executor using cookiecutter template
- Return type
None