snowflake/appengine
2018-11-05 16:26:40 -07:00
..
app.yaml Customize reflect.go for Snowflake broker. 2017-07-15 14:33:00 -07:00
README Add "auth login" to the gcloud steps. 2018-11-05 16:26:40 -07:00
reflect.go Use the "context" package in go 1.7 2017-10-12 18:39:03 -04:00

This component runs on Google App Engine. It reflects domain-fronted
requests from a client to the Snowflake broker.

You need the Go App Engine SDK in order to deploy the app.
	https://cloud.google.com/sdk/docs/#linux
After unpacking, install the app-engine-go component:
	google-cloud-sdk/bin/gcloud components install app-engine-go

To test locally, run
	google-cloud-sdk/bin/dev_appserver.py app.yaml
The app will be running at http://127.0.0.1:8080/.

To deploy to App Engine, first create a new project and app. You have to
think of a unique name (marked as "<appname>" in the commands). You only
have to do the "create" step once; subsequent times you can go straight
to the "deploy" step. The "gcloud auth login" command will open a
browser window so you can log in to a Google account.
	google-cloud-sdk/bin/gcloud auth login
	google-cloud-sdk/bin/gcloud projects create <appname>
	google-cloud-sdk/bin/gcloud app create --project=<appname>
Then to deploy the project, run:
	google-cloud-sdk/bin/gcloud app deploy --project=<appname>

To configure the Snowflake client to talk to the App Engine app, provide
"https://<appname>.appspot.com/" as the --url option.
	UseBridges 1
	Bridge snowflake 0.0.2.0:1
	ClientTransportPlugin snowflake exec ./client -url https://<appname>.appspot.com/ -front www.google.com