Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 2.31 KB

File metadata and controls

61 lines (39 loc) · 2.31 KB

Serverless deployment on Google Cloud

Introduction

This tutorial will show you how to setup a serverless Kill Bill deployment on Google Cloud using Cloud Run. This is a great way to get started with Kill Bill, and to quickly deploy prototyping and test environments.

Note: for a highly-scalable, production-ready, installation, take a look at our official AWS CloudFormation template instead.

Installation

Cloud SQL instance configuration

Go to Could SQL:

CloudSQL1

  • Create instance

CloudSQL2

  • Choose MySQL

CloudSQL3

  • Configuration

    • Instance ID: killbill

    • Root password: killbill

Click Create, wait a few minutes for the database to be up, and write down the Public IP address for later use.

Under the connections tab, add 0.0.0.0/0 as an Authorized Network (it doesn’t seem like the Cloud SQL Proxy is integrated yet with Cloud Run and jdbc drivers unfortunately).

Finally, install the DDL schema:

Cloud Run service configuration

Go to Cloud Run:

CloudRun1

  • Create service

  • Select the Kill Bill image on gcr.io // TODO

  • Configuration

    • Allow unauthenticated invocations

    • Show optional settings

      • Memory allocated: 2GiB

      • Environment variables:

        • KILLBILL_DAO_USER=root

        • KILLBILL_DAO_PASSWORD=killbill

        • KILLBILL_DAO_URL=jdbc:mysql://<CLOUD_SQL_IP_ADDESS>:3306/killbill