This message was deleted.
# ask-for-help
s
This message was deleted.
🚀 1
🏁 1
j
Also tried to set platform using
Copy code
DOCKER_DEFAULT_PLATFORM=linux/amd64 bentoctl build -b myapp:latest -f deployment_config.yaml
But still the same issue when uploading to Cloud Run.
So to narrow down the question: is it possible to force bentoctl to build for the Linux/amd64 architecture?
j
Running into a similar issue I believe. Did you manage to find a solution?
a
Hi there, there is a patch for this upstream and we haven’t release a version to address this yet.
For now, you can uninstall your current bentoctl and then install it from upstream
Copy code
pip install git+<https://github.com/bentoml/bentoctl.git@main>
j
@Josef You may need to also manually remove
bentoctl
from your package-versions if it does not work with just
pip uninstall
j
Thanks @Aaron Pham for the info and the link, and thanks @Jon Gill for the input. Much appreciated! I actually managed to solve the issue I had. I was trying back and forth with uninstalling and creating new venvs and building for the Linux/amd64, and also found an incompatibility in the version of bentoml I was using with one of the Python packages I was using. So finally it worked. Still not sure exactly what made the difference but I guess it had to do with a broken environment. So upgrading to latest bentoml, reinstalling, and using the docker default platform flag I guess was the medicine.
a
you should be able to use
--opt platform
on bentoml. For bentoctl, we have that patch upstream and not yet release it.