77e69b9cf3
Signed-off-by: Olivier Gambier <olivier@docker.com> |
||
---|---|---|
.. | ||
app.yaml | ||
helloworld.go | ||
README.md |
Cloud Bigtable on Managed VMs using Go
(Hello World for Cloud Bigtable)
This app counts how often each user visits.
Prerequisites
- Set up Cloud Console.
- Go to the Cloud Console and create or select your project. You will need the project ID later.
- Go to Settings > Project Billing Settings and enable billing.
- Select APIs & Auth > APIs.
- Enable the Cloud Bigtable API and the Cloud Bigtable Admin API. (You may need to search for the API).
- Set up gcloud.
gcloud components update
gcloud auth login
gcloud config set project PROJECT_ID
- Download App Engine SDK for Go.
go get -u google.golang.org/appengine/...
- In helloworld.go, change the constants
project
,zone
andcluster
Running locally
- From the sample project folder,
gcloud preview app run app.yaml
Deploying on Google App Engine Managed VM
- Install and start Docker.
- From the sample project folder,
aedeploy gcloud preview app deploy app.yaml