Skip to content

huridocs/ml-cloud-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ml-cloud-connector

Setup the Server

git clone https://github.com/huridocs/ml-cloud-connector.git
cd ml-cloud-connector
chmod +x setup.sh
sudo ./setup.sh
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

python3 src/ml_cloud_connector/create_post_start_script.py

To do

[x] Start instance if it is paused
[x] Shutdown instance when not used
    [x] Add a script to stop instance
[x] Check if instance is accessible for endpoints
[x] Check if post start script works
[x] Use connector in translation service
    [x] Cache ip to avoid extra time
    [x] Default to localhost when no variables
    [x] Get ip should start server if stopped
    [x] Catch error ovh.exceptions.ResourceConflictError on start or stop
    [ ] Write tests

[ ] Check OVH security to avoid extra charges [ ] Use VPN ?

Stop automatic shutdown

sudo kill -9 $(pgrep -f automatic_shutdown)