Created
          July 19, 2020 08:29 
        
      - 
      
 - 
        
Save neelriyer/23ca4d121e2a1e1f11ab356ceac6fc79 to your computer and use it in GitHub Desktop.  
    detectron2 web app build submit and cloud beta run deploy
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # adapted from: https://github.com/npatta01/web-deep-learning-classifier/blob/master/docs/2_b_gcloud.md | |
| GCP_PROJECT=fresh-runway-246001 | |
| APP_NAME=neelsmlapp | |
| REGION="us-central1" | |
| MEMORY=2G | |
| # set project to correct one | |
| gcloud config set project $GCP_PROJECT | |
| # build | |
| gcloud builds submit --tag gcr.io/$GCP_PROJECT/$APP_NAME \ | |
| --timeout=82800 | |
| # run | |
| gcloud beta run deploy $APP_NAME \ | |
| --image gcr.io/$GCP_PROJECT/$APP_NAME \ | |
| --region $REGION --memory $MEMORY --allow-unauthenticated | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment