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.
Go to Could SQL:
-
Create instance
-
Choose MySQL
-
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:
-
Whitelist your IP address:
gcloud sql connect killbill --user=root --quiet -
Enter the password (
killbill) -
Create the database:
create database killbill; -
Run the Kaui DDL schema creation script
Go to Cloud Run:
-
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
-
-
-



