:wave: Hello! Possible regression error in `1.3.0...
# ask-for-help
j
👋 Hello! Possible regression error in
1.3.0
? We run the
bentoml containerize
in the CI (unpinned) and we started to get these errors in our build logs:
Copy code
#5 DONE 21.1s

#7 [base-container 2/7] RUN mkdir /home/bentoml/bento && chown bentoml:bentoml /home/bentoml/bento -R
#7 1.903 mkdir: cannot create directory '/home/bentoml/bento': No such file or directory
#7 ERROR: process "/bin/sh -c mkdir $BENTO_PATH && chown bentoml:bentoml $BENTO_PATH -R" did not complete successfully: exit code: 1

Dockerfile:26
--------------------
  24 |     ENV BENTOML_HOME=/home/bentoml/
  25 |     
  26 | >>> RUN mkdir $BENTO_PATH && chown bentoml:bentoml $BENTO_PATH -R
  27 |     WORKDIR $BENTO_PATH
  28 |     
--------------------
The bento in question is using an internal docker image as the base image which we also set
BENTOML_HOME
. Possible
-p
is lacking in the
RUN mkdir $BENTO_PATH...
above? 🤔 Pinning the bentoml build version in the CI to
1.2.18
resolved our issues for now
✅ 1
Tested locally with
bentoml containerize
its seems to be broken for us in
1.2.20
while
1.2.19
works From what I can infer by searcing the bentoml repo is that this line is broken as some subdirs are missing in
BENTO_PATH
however that code hasnt been touched in 4 years 🤷‍♂️ https://github.com/bentoml/BentoML/blob/d34749f0737c696d3fcb028cee07082b6102cfad/s[…]ntoml/_internal/container/frontend/dockerfile/templates/base.j2
j
CC: @Frost Ming
Thanks for reporting!
j
No worries, thanks for responding!
f
It should have been fixed on 1.3.1
j
Great, seems to be working on our end now - thanks!