Cloud Demo Portal is an App Engine web application which has small demos.
Cloud Demo Portal is not an official Google Cloud project.
- An empty Google Cloud project
- Google Cloud SDK (gcloud)
- Terraform
git clone https://github.com/GoogleCloudPlatform/appengine-cloud-demo-portal.git
cd appengine-cloud-demo-portalMake your .envrc.
cd terraform
cp .envrc.example .envrc
vi .envrc
source .envrcInitialize terraform.
terraform initApply terraform.
terraform applyPush source code and then Cloud Build triggers to deploy app are triggered automatically.
cd ..
git config --global credential.https://source.developers.google.com.helper gcloud.sh
git remote add google https://source.developers.google.com/p/${TF_VAR_project_id}/r/cloud-demos
git push google mainFirst builds for triggers named api and dispatch might fail because deploying them needs web (default) service to be deployed. After the build named web is finished, run api trigger manually. And after api is deployed, then run dispatch trigger manually.
You can run them on Console.
If authentication doesn't work, you can enable IAP on Console.
Prerequisites
Setup git hooks.
scripts/init-git-hooksCreate application-default credentials.
gcloud auth application-default loginCreate your .envrc and change PROJECT_ID to yours.
cp .envrc.example .envrc
vi .envrcRun development servers.
docker-compose up
# on macOS
docker-compose -f docker-compose.macos.yaml upGo to http://localhost:8080.
