Deploy Object Detection In 1 Min

wrannaman
Apr 7 4 min read
# Paid Versiondocker tag registry.sugarkubes.io/sugar-cv/object-detection:cpu gcr.io/<YOUR PROJECT ID>/object-detection:cpudocker push gcr.io/<YOUR PROJECT ID>/object-detection:cpu# Free Version docker tag sugarkubes/testing_ui:latest gcr.io/<YOUR PROJECT ID>/testing_ui:latestdocker push gcr.io/<YOUR PROJECT ID>/testing_ui:latest
This 1GB is only required for the ML model, not the free Testing UI
Youll get a URL for your new app! With SSL!
And it actually works! Holy Heck!
# You can do this and run it locally or you can spin up 
# another Google Cloud Run instance with the Testing UI!
# This is free, no login required docker run -ti -p 7777:7777 -e PORT=7777 sugarkubes/testing_ui:latest

Notes

The only real issue I encountered is that Cloud Run seems to set a PORT environment variable that your app is expected to listen on. Once I figured that out and slightly modified my apps it worked like a dream.

# Useful snippet to start node apps from ENV variables... // package.json...
"scripts": {
"start": "next start -p ${PORT}"
},
...
# Then you can run it with
npm run start

SugarKubes

A Container Marketplace https://sugarkubes.io

wrannaman

Written by

wrannaman

Developer, etc.

SugarKubes

A Container Marketplace https://sugarkubes.io