Slackbot
12/02/2022, 7:21 AMBenjamin Tan
12/02/2022, 7:33 AMsanghyub lee
12/02/2022, 7:34 AMv1.0.10
right? I'll try!Benjamin Tan
12/02/2022, 7:39 AMsanghyub lee
12/02/2022, 7:44 AM=> ERROR [base-debian 8/10] RUN --mount=type=cache,target=/root/.cache/pip bash -euxo pipefail /home/bentoml/bento/env/python/install.sh 0.9s
------
> [base-debian 8/10] RUN --mount=type=cache,target=/root/.cache/pip bash -euxo pipefail /home/bentoml/bento/env/python/install.sh:
#13 0.796 bash: /home/bentoml/bento/env/python/install.sh: No such file or directory
------
executor failed running [/bin/bash -eo pipefail -c bash -euxo pipefail /home/bentoml/bento/env/python/install.sh]: exit code: 1
I think the message is almost same π€Benjamin Tan
12/02/2022, 7:50 AMBenjamin Tan
12/02/2022, 7:50 AMbentoml build -f bentofile.yaml
?sanghyub lee
12/02/2022, 7:53 AMbentoml build
and `bentoml build -f bentofile.yaml`both.
Got same message π₯²Benjamin Tan
12/02/2022, 7:57 AMBenjamin Tan
12/02/2022, 7:57 AM.dockerignore
Benjamin Tan
12/02/2022, 7:58 AMbentoml containerize
?sanghyub lee
12/02/2022, 8:03 AMservice: "load.py:svc" # Same as the argument passed to `bentoml serve`
labels:
owner: sanghyub.lee
stage: dev
include:
- "*.py" # A pattern for matching which files to include in the bento
python:
packages: # Additional pip packages required by the service
- torch >= 1.13
- torchvision >= 0.14.0
- bentoml >= 1.0.2
- mlflow >= 1.27.0
This is my bentofile.yaml.
I'm doing docker build
cuz I need docker image.
Oh my god... docker build
and bentoml containerize
are totally different right? πsanghyub lee
12/02/2022, 8:08 AMbentoml containerize
, It seems going wellBenjamin Tan
12/02/2022, 8:14 AMcontainerize
does some extra stuff πsanghyub lee
12/02/2022, 8:34 AMBenjamin Tan
12/02/2022, 8:39 AMAaron Pham
12/21/2022, 2:41 AMcontainerize
extends docker build that add a few more features on top of it ( you can check out bentoml containerize --help
for more information)
If you wish to build the bento from the dockerfile you can do the following
BENTO_PATH=$(b get bento:tag -o path)
docker build -f $BENTO_PATH/env/docker/Dockerfile $BENTOML_PATH