Generate Container (Local)
Generate Container (Local)
Procedure
- User must create an image for each of the components present in the MLaC folder (every component has a docker file present which will help to build the Docker image).
- Once all the images have been created user can run each container (using the images) one by one in the following sequence: .
- You will see the status of each step can be seen in the shell.
Detailed Steps to Create a Container
Procedure
- Train the model.
- Go to the MLac generate code and click Generate the code.
- Copy the path.
- Open Aion shell and go the path: C:\Users\user_name\AppData\Local\HCLT\AION\target\AION_375_1\publish\
- Run the command python MLaC\run_pipeline.py.
- Basically we are creating persistent volume and intermediate files will be stored in the file (raw.data, traindata, etc).
-
:
Model Monitoring: {“status”:” success”,” DataFilepath:” pipeline executing first time”}
-
Example:
Data Ingestion: {: {“status”:” success”,” DataFilepath”: rawData.dat”,” Records”:130}
- In data ingestion it will read data from UI and created a new file.
- Similarly, .
- Open putty goes to the location path.
- Check the docker images are present and delete it one by one using the command Docker rmi -f (forcefully) and image ID.
- Go the Model Monitoring path.
- Run the command Docker build -t modelmonitoring: y1.
- It will copy and all the Docker file images, Docker build -t model monitoring:y1(you can change as per convenience) .( docker build -t modelmonitoring:y1 .)
-
Another example after ModelMonitoring,
cd DataIngestion <docker build -t dataingestion:y1>
. - Similarly, .
- Check all images or build or not by using Docker images as command.
- Build the Docker image using this command so that we can use the container.
- To execute the each component one by one, please issue run docker command.
Steps to Run the Container
Procedure
After checking Docker images are present:
-
Run command
Docker run -it --rm -v /home/ubuntu/aion:/aion (model montoring Image id) 416398138 python code.py
. - It will create a container and it will map the folder.
- Follow the steps for Remaining (docker images) as .