Way to customize the BentOs location #2409
Replies: 3 comments
-
Hey @callmedada This is an interesting question. From what I understand: Right now, I don't think right now there is a good way to customize where these files are generated. I think the best way right now's write script for post bento building command for your customization. The paths to these files are static. Let me know if I can help with that. I would love to learn and understand more about the strict deployment policy. We would love to help you to make BentoML more compliance with it. Also feel free to message me on slack or email: [email protected], if there are sensitive info. |
Beta Was this translation helpful? Give feedback.
-
Hi @callmedada - In general, we don't encourage users to change files under a Bento after it is build. As suggested here #2367 (comment), customizing the generated OpenAPI docs is currently not possible - you can only customize at the IO descriptor level, e.g. adding sample input or adding schema to a JSON input, but not the entire OpenAPI document. BentoML does offer a number of ways to customize the docker base image. for example, you can choose a distro among "debian", "amazonlinux2", "alpine", "ubi8", and "ubi7", you can choose to include GPU related libraries or not, and you can set a If customizing files under a Bento directory is needed and you want to customize where the Bento folder is generated, you can use the |
Beta Was this translation helpful? Give feedback.
-
Thanks a million for you guys answers and thoughts. Yes, basically we are trying to use our own artifactory to replace pip, and perform multi-stage build (build from multiple staged images) to hide some sensitive information from the layers . Also, the default build seems have permission issue if not run as root in openshift. (Please see this issue : #1032, it still exists). Grant permission is not allowed by us, so I have to customize the dockerfile in order to run it in redshift. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hey, BentoML team!
Happy Monday. I am currently trying to automate the workflow to customize the dockerfile to suit our strict deployment policy, and customized the openapi.ymal before containerize the BentOS. I am doing it by editing the Dockerfile and ymal files in the BentOS folders. I am wondering if we can make the BentOS in a customized folder but not under the current user folder (by default)? And if there is a better approach to customized the Dockerfile and OpenAPI, please let me know. Any comments or criticize will be much appreciated.
Many thanks in advance,
Dennis
Beta Was this translation helpful? Give feedback.
All reactions