This message was deleted.
# ask-for-help
s
This message was deleted.
🏁 1
🍱 1
e
bentoml serve
seems to work just fine after killing a hanging
bentoml build
call.
bentoml containerize
fails saying that no bentos exist for the model. So
bentoml build
must never have built anything before I killed it.
s
This is a problem we've encountered due to the python APIs being incredibly slow at moving large numbers of files; do you have something like that (a venv, for example) that you're including in the bento?
e
Interesting. I'm thinking no in this case. My makefile is in the root folder. The venv is in the root as well. The makefile runs:
Copy code
build-bento-service:
    #!/bin/bash -e
    BUILD_CONTEXT="./api/"
    bentoml build --bentofile ./api/bentofile.yaml $BUILD_CONTEXT
Since the build context is one folder more deeply nested, I don't think the venv would be ending up in there
(it's not in the build context I"m specifying at least)
s
Hm, ok. I'll take a quick look at what's run after that print.
e
No! You were right! I did have an extra venv in that folder. Fixed! Thanks @sauyon
s
Oh awesome! Something we've been considering is adding common venv folder names to the default exclude, but really we should figure out a way around the python APIs eventually...
e
Is there a
.bentoignore
file? I'd probably use that by default.
s
There's an
exclude
inside the
bentofile.yaml
, I think, let me just double check.
a
there is a
.bentoignore
file.
s
Ah, forgot to come back to this. Yep, you can specify it both in the
.bentoignore
and with the
exclude
parameter of the
bentofile.yaml
.
e
Thanks!