Study notes
What for Docker here; statistics and Azure ML?
When create experiments no everything is going well and you need to debug.
If it is about a deep learning, convulsive neural networks or just an experiment that require AKS clusters then the recommended option is to run your buggy experiment in a container on Docker and then send back to cloud into AKS cluster.
Good news is that Visual Studio code make our life easier.
Initial steps:
- Install Visual stdio code, see details https://www.cristinabrata.com/posts/visual-studio-code-in-azure-ml
- Install Docker desktop
- Install Docker extension in Visual Studio code
The app has to be set into set into the folder
Docker/Node.js steps:
Open a terminal (command prompt in VS code) and install express (Node.js)
>npx express-generator
>npm install
- Generate Docker file
>Docker: Add Docker Files to Workspace command
If image selected is node.js then:- before doing this install node, yo can do it in terminal (VS code)
- you may get an error: "No package .json found on workspace"
Open a terminal and run:
>npm init
Now I assume the "Docker: Add Docker Files to Workspace" command works.
Main resources:
https://code.visualstudio.com/docs/containers/overview
https://docs.docker.com/desktop/