- 📂 constants
- 📂 entity
- 📂 components
- 📂 pipelines
- 👷️ app.py
💿 Clone the repository
https://github.com/kunalmishravitb/End-to-End-Waste-Detection-Using-YOLOv5.git
conda create -n waste python=3.10 -y
conda activate waste
pip install -r requirements.txt
🚀 Run the application:
python app.py
👀 Open your local host and port
- ✨ EC2 Access: Virtual machine setup
- 🏢 ECR: Store Docker images in AWS
- 🎨 Build Docker image of the source code
- 💾 Push Docker image to ECR
- 🚀 Launch EC2 instance
- 🏢 Pull image from ECR in EC2
- 🏰 Launch Docker image in EC2
- 🔧 AmazonEC2ContainerRegistryFullAccess
- 🏢 AmazonEC2FullAccess
- Save the URI: `566373416292.dkr.ecr.ap-south-1.amazonaws.com/waste`
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 Settings > Actions > Runner > New Self-Hosted Runner and follow the instructions.
AWS_ACCESS_KEY_ID=xxxxx
AWS_SECRET_ACCESS_KEY=xxxxx
AWS_REGION=us-east-1
AWS_ECR_LOGIN_URI=566373416292.dkr.ecr.ap-south-1.amazonaws.com
ECR_REPOSITORY_NAME=simple-app
s3cEZKH5***************ACRCZ7JD6
docker build -t chickenapp.azurecr.io/chicken:latest .
docker login chickenapp.azurecr.io
docker push chickenapp.azurecr.io/chicken:latest
- 🎨 Build Docker image of the source code
- 💾 Push Docker image to Container Registry
- 🏢 Launch Web App Server in Azure
- 🛠️ Pull the Docker image from the container registry to Web App server and run