Skip to content

frossbeamish/serverless-java-gcp

Repository files navigation

Serverless Java GCP

This repository houses code examples to demonstrate how to do serverless Java on the Google Cloud Platform.

Presentation

Setup

  1. Create a Google Account if you do not already have one.
  2. Sign up for a Google Cloud Platform Account if you do not already have one.
  3. Download and initialize the gcloud sdk:
gcloud init
  1. Determine your Google Cloud Billing Account Id:
gcloud beta billing accounts list
  1. Determine your Google Cloud Project Id (remember: these are globally unique).
  2. Create some environment variables:
export BILLING_ACCOUNT=<BILLING-ACCOUNT-ID>
export PROJECT_ID=<PROJECT-ID> 
  1. Create the Google Cloud Project:
gcloud projects create $PROJECT_ID --set-as-default
  1. Enable billing on your Google Cloud Project:
gcloud beta billing projects link $PROJECT_ID --billing-account $BILLING_ACCOUNT >> /dev/null
  1. Enable the necessary Google Cloud Platform Services:
gcloud services enable containerregistry.googleapis.com
gcloud services enable container.googleapis.com
gcloud services enable run.googleapis.com
  1. Create the Google Cloud Platform resources for this example:
gcloud app create --region=us-central
gcloud container clusters create $PROJECT_ID
gcloud container clusters get-credentials $PROJECT_ID

Modules

Tear Down

  1. Delete your Google Cloud Project:
gcloud projects delete $PROJECT_ID
  1. Unset your environment variables:
unset BILLING_ACCOUNT
unset PROJECT_ID

About

serverless-java-gcp

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages