More informative error message when building the docker image fails.
I was trying to deploy a scoring pipeline on Azure using AML SDK in Python. The scoring pipeline needs fbprophet library to train the forecasting model on the fly, and forecast for the future. I added fbprophet into the pip install in the myenv.yml by using myenv.addpippackage("fbprophet"). Then, the step of building the image failed.
The error message did not have any information helpful for debugging. Although there might be somewhere with more detailed logs, but I had no clue where to find the logs. I had to google around for any possible reason.
After being blocked by this error for about 2 hours, finally I figured out (by myself) that I need to install gcc on the docker image, before I can install fbprophet.
Here is the steps that I took to solve this problem:
addpippackage("pystan") #pystan is a dependency of fbprophet
After the myenv.yml is written, manually change the sequence of installation to ensure that gcc installation appears earlier than pystan and fbprophet in the YAML file.
After these changes, things are working.
Also, another request is that it will be great if you can expose the dockerfile to the end user so that they can try to build the docker image locally so they can know what is wrong when building the image.
Dear Azure Customer,
Thanks for the feedback. Your feedback is very important to us. We will investigate it and get back to you soon.
Thank you for understanding.
Azure CXP Community
Lauri Lehman commented
When deploying to Azure Container Instances, I was able to find the detailed logs in Azure Portal by going to the named Azure Container Instance, as the error message indicated. But it would be helpful if the main error message was visible directly when running the deployment script.