57 lines
1.4 KiB
Markdown
57 lines
1.4 KiB
Markdown
# hpos-data
|
|
|
|
Repo for all data related work.
|
|
`scripts` contains all the data processing scripts. `cloud-functions` contains all the funtions written in Node.js and python.
|
|
`queries` contains sql queries. `train` has the training files and `cuda` folder is for cuda kernels.
|
|
|
|
|
|
### installation
|
|
|
|
pip install requirements.txt
|
|
|
|
|
|
### run tests
|
|
|
|
pytest
|
|
|
|
|
|
### some functions are deplyed with endpoints
|
|
|
|
https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser
|
|
|
|
### gcloud set project
|
|
|
|
gcloud config set project hpos-qa
|
|
|
|
### deploy specific function
|
|
|
|
firebase deploy --only functions:consolidation
|
|
|
|
### deploy function with gcloud - nodejs
|
|
|
|
gcloud functions deploy registerUser --runtime nodejs18 --trigger-http --region asia-south1
|
|
|
|
### deploy function with gcloud - python
|
|
|
|
gcloud functions deploy my_function --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated
|
|
|
|
gcloud functions deploy clearusers --runtime=python311 --region=asia-south1 --trigger-http --memory=512MB
|
|
|
|
gcloud functions deploy consolidation --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated --memory=512MB
|
|
|
|
gcloud functions deploy performance --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated --memory=512MB
|
|
|
|
### function log
|
|
|
|
gcloud functions logs read performance --region=asia-south1 --limit=100
|
|
|
|
### list buckets
|
|
|
|
gcloud storage ls
|
|
|
|
|
|
### list devices
|
|
|
|
ls /dev/cu*
|
|
|