Slackbot
09/27/2022, 12:12 PMAaron Pham
09/27/2022, 12:58 PMbento_configuration.yaml
via environment variable BENTOML_CONFIG
Please see more here https://docs.bentoml.org/en/latest/guides/configuration.html#configuring-bentomlJudah Rand
09/27/2022, 1:25 PMbentoctl
as far as I can tellJudah Rand
09/27/2022, 1:26 PMBENTOML_CONFIG
as an env var to bentoctl
?Judah Rand
09/27/2022, 1:26 PMbentoml
and bentoctl
are two separate cli toolsAaron Pham
09/27/2022, 1:57 PMJudah Rand
09/27/2022, 2:51 PMJudah Rand
09/27/2022, 2:52 PMBENTOML_CONFIG=$PWD/bentoml_configuration.yaml bentoml containerize <PLACEHOLDER>:latest
and then bentoml containerize <PLACEHOLDER>:latest
then all layers of the resulting container image are already cached.Judah Rand
09/27/2022, 2:52 PMJudah Rand
09/27/2022, 2:52 PMJudah Rand
09/27/2022, 4:04 PMmax_latency_ms=10000
default.Judah Rand
09/27/2022, 4:05 PMBENTOML_CONFIG
is used is in bentoml serve
.Aaron Pham
09/27/2022, 4:18 PMdocker run --env BENTOML_CONFIG=/home/bentoml/bentoml_config.yml -v /path/to/config:/home/bentoml/bentoml_config.yml ...
Judah Rand
09/27/2022, 4:19 PMJudah Rand
09/27/2022, 4:21 PM<http://main.tf|main.tf>
substantially I can probably get this to work. But my point is now that this is a gaping hole in the deployment story using bentoctl
Aaron Pham
09/27/2022, 4:22 PMBo
09/27/2022, 4:38 PMBo
09/27/2022, 4:38 PMJudah Rand
09/27/2022, 4:55 PMAre you using it in production right now?Not atm but aiming to in the very near future assuming we can get it to work. The aim is to have this be the ‘template’ for how we’d like to deploy internally facing models going forwards and potentially customer facing models further out.
Sean
09/28/2022, 2:54 AMv1.0.6
release introduced a capability to configure BentoML through environment variable. Checkout the doc to see if it could help you. https://docs.bentoml.org/en/latest/guides/configuration.html#overrding-configuration-with-environment-variables