https://github.com/rijalghodi/simple-mlops-iris
A simple MLOps for auto deploying iris machine learning model
https://github.com/rijalghodi/simple-mlops-iris
fast-api github-actions mlops vps
Last synced: 9 months ago
JSON representation
A simple MLOps for auto deploying iris machine learning model
- Host: GitHub
- URL: https://github.com/rijalghodi/simple-mlops-iris
- Owner: rijalghodi
- License: mit
- Created: 2024-05-04T11:14:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T02:42:01.000Z (almost 2 years ago)
- Last Synced: 2025-05-29T02:44:24.667Z (11 months ago)
- Topics: fast-api, github-actions, mlops, vps
- Language: Python
- Homepage: http://139.59.118.81:8001/
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple ML Ops Iris
## How to run locally [vanilla]
1. Install python
2. Add python in PATH environment variable
3. Open VSCode or IDE
4. Select interpreter as python
5. Run `pip install -r requirements.txt`
6. Run server using `uvicorn main:app --host 0.0.0.0 --port 8001`
## How to run locally using docker
1. Install docker
2. Create image using `docker build -t iris-mlops .`
3. Run image in container using `docker run -d --name iris-mlops -p 8001:8001 iris-mlops`
## How to deploy automatically in VPS using Github Action
1. Install docker in VPS
2. Add variables `VPS_HOST`, `VPS_USERNAME`, and `VPS_WORKDIR`
3. Add secret key `VPS_PRIVATE_KEY`
4. Pull project to main branch to automatically deploy