Configure docker to build an image of bentoservice located in a remote minio server #943
-
I have configured a remote Minio server for storing saves BentoService files to ~/minio/aisolrepo/. After this while trying to run docker build -t iris-classifier $saved_path getting error of unable to prepare context: path "s3://aisolrepo/IrisClassifier/20200720081955_358AFA.tar.gz" not found So my question is "How do we configure docker to build an image of bentoservice located in a remote minio server" ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Assuming you have configured a remote YataiService, you can use the $ bentoml retrieve IrisClassifier/20200720081955_358AFA --target_dir=/tmp/irirs-classifier-saved-bundle
$ cd /tmp/irirs-classifier-saved-bundle
$ docker build . In the next BentoML release, a new CLI command |
Beta Was this translation helpful? Give feedback.
Hi @athulprathap
Assuming you have configured a remote YataiService, you can use the
bentoml retrieve
command to download the BentoService saved bundle directory to any local file directory. E.g:In the next BentoML release, a new CLI command
$ bentoml containerize
will be available and you can use that to build docker image located in a remote YataiServcie directly(it downloads the saved bundle files locally under the hood)