Predict which passengers are transported to an alternate dimension
We will be concentraining on MLOps part only, topics like feature engineering, trying alternate models are given less importance.
Difference between continours delivery and deployment Continous Integration: code commits pushes , reviews Continuous Delivery: ensures that code is always in a deployable state, with automated testing Continuous Deployment : deployment to production.
- change the db settings alone and test locally ,
- Added torch code and flask code additionally
- test it locally then deploy to AWS Initate git and set git url initiate docker . dont run in same environment
docker build -t spaceship_pro_1 . 600 - 1000 seconds to build docker run -p 8085:8085 spaceship_pro_1
so its able to run properly in a docker env url/train - even if you change the database model will be generated with latest data
now go to aws
-
Create a iam user with following policies
a. AmazonEC2ContainerRegistryFullAccess
b. AmazonEC2FullAccess
-
Create a new keyvalue pair under security credentials and save the file
-
Now create ECR repo and store the URL
306093656765.dkr.ecr.us-east-1.amazonaws.com/spaceship
- create keyvalue pair if u want to access through putty. Allow HTTP and HTTPs traffic
sudo apt-get update -y
sudo apt-get upgrade
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker ubuntu
newgrp docker
-
Go to Actions -> Runners -> new self hosted runner
-
Execute all commands for linux machine as we selected it
-
While entering name of runner give "self-hosted" runner
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION = us-east-1
AWS_ECR_LOGIN_URI = only till .com
ECR_REPOSITORY_NAME = nameofrepo
IN EC2: change inbound rules for 8085 port access http://54.204.114.208:8085/
References:
- Krish Naik Videos
- https://github.com/dimitreOliveira/torchserve_od_example/tree/main