Skip to content

Instantly share code, notes, and snippets.

@neelriyer
Created July 19, 2020 08:29
Show Gist options
  • Save neelriyer/23ca4d121e2a1e1f11ab356ceac6fc79 to your computer and use it in GitHub Desktop.
Save neelriyer/23ca4d121e2a1e1f11ab356ceac6fc79 to your computer and use it in GitHub Desktop.
detectron2 web app build submit and cloud beta run deploy
# 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