- Update Configuration: Make necessary changes to the configuration file (config.yaml).
- (Optional) Update Secrets: If needed, update sensitive information in the secrets file (secrets.yaml).
- Update Parameters: Modify parameters in the params file (params.yaml).
- Update the Entity: Update the return type of a function in your code.(To update entities first write code in research folder experiment notebook then make it an entity.)
- Update Configuration Manager: Make changes to the configuration manager located in the 'src/config' folder.
- Update Components: Modify and enhance the components of your project.
- Update the Pipeline: Make updates to the project's data processing pipeline.
- Update Main.py: Enhance the main Python script.
- Update DVC Configuration: Update the DVC (Data Version Control) configuration for data tracking.
- Clone the Repository:
- Copy the URL of the repository and use the following command to clone it to your local machine:
git clone https://github.com/harshit-sharma1256/kidney-disease-classification-Mlflow-dvc.git
- After opening the repository, create a Conda environment using the following commands:
conda create -p kidney python=3.8 -y
- Note: You can replace "chicken" with any desired environment name.
conda activate kidney
- Note: If you are using the latest version of Anaconda, use the following command:
activate kidney
or
activate kidney/
Install the required Python packages by running:
pip install -r requirements.txt
To run the application, execute the following command:
python app.py
Afterward, open your web browser and navigate to your local host and port to access the application.
- Initialize DVC:
dvc init
- Reproduce DVC Pipeline:
dvc repro
- Visualize DVC Pipeline:
dvc dag
Access your AWS account and log in to the AWS Management Console.
Create an IAM user in AWS with specific access permissions, including EC2 and ECR.
- EC2 Access: This provides access to virtual machines.
- ECR: Elastic Container Registry, used to store Docker images in AWS.
Create an Elastic Container Registry repository to store and manage Docker images. Save the repository URI for later use.
Set up an EC2 instance with the Ubuntu operating system.
Optionally, update and upgrade the EC2 instance and install Docker to manage containers.
# Optional
sudo apt-get update -y
sudo apt-get upgrade
# Required
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker ubuntu
newgrp docker
Configure the EC2 instance as a self-hosted runner for GitHub Actions. This is done by following the settings in the GitHub repository under "Actions."
In the GitHub repository settings, set up secrets for AWS credentials, ECR URI, and other necessary information.
AWS_ACCESS_KEY_ID
: Your AWS access key.AWS_SECRET_ACCESS_KEY
: Your AWS secret access key.AWS_REGION
: Your AWS region (e.g., us-east-1).AWS_ECR_LOGIN_URI
: The ECR login URI.(Part before the '/')ECR_REPOSITORY_NAME
: The name of your ECR repository.(Part after the '/')