Zero to Cloud with Antigravity 2.0 ๐Ÿš€

Building & Deploying Rails 8 on Google Cloud (Wednesday Build Hour)

๐Ÿ‡ฎ๐Ÿ‡น

Slides QR Code ๐Ÿ“ฑ Slides Link

Riccardo Carlesso ๐Ÿฆ– & Emiliano Della Casa ๐Ÿ๐ŸŽ๏ธ  ·  Google Cloud DevRel & Open Source

Riccardo Emiliano

Step 1: Download & Install Google Antigravity 2.0 โฌ‡๏ธ

๐Ÿ”— antigravity.google/download

๐ŸชŸ Windows Users Tip: Please use WSL (Windows Subsystem for Linux) โ€” it makes Ruby, Docker, and Linux tooling 10x easier!

Download Antigravity 2.0

Step 2: Open the Official Google Codelab (Page 1 โ†’ #0) ๐Ÿ“–

  • โณ While Antigravity downloads: open the Codelab in Google Chrome!
  • ๐Ÿ”ข Page 1 (#0): Introduction & Architecture Overview.
  • ๐Ÿ’ณ Page 2 (#1): Prerequisites & Free GCP Credits (we'll claim them in Step 8!).

Step 3: Launch & Sign In with Gmail ๐Ÿ”

  1. Open Google Antigravity 2.0 ย ยทย  2. Click Sign in with Google ย ยทย  3. Authorize your agent.
Sign in with Google

๐Ÿ’ก Sign in with your personal @gmail.com account (the same one you will use to claim GCP credits).

Step 4: Prompt 1 โ€” Clone the Repository into Documents ๐Ÿ“ฅ

Paste this first prompt into any Antigravity chat window to clone the workshop repo and chime when ready:

Download https://github.com/palladius/rails8-app-on-gcp/ (via git clone) into my Documents folder and play a short sound when you are done.

๐Ÿค– Why do this via prompt? Antigravity verifies git is installed, clones rails8-app-on-gcp straight into ~/Documents/rails8-app-on-gcp, and plays an audio chime when finished!

Step 5: Open a New Project Inside Documents/rails8-app-on-gcp ๐Ÿ“

1๏ธโƒฃ Click New Project (Select a folder)
In the top-left Projects sidebar, click the folder+ icon and pick New Project.

Step 1: Click New Project in Antigravity

2๏ธโƒฃ Select Documents/rails8-app-on-gcp
Navigate to Home / Documents and select the cloned rails8-app-on-gcp folder.

Step 2: Select Documents/rails8-app-on-gcp folder

Step 6: Say "ciao" & Enable TURBO Mode โšก

3๏ธโƒฃ Say "ciao" to register the project on the left
Send a quick ciao so rails8-app-on-gcp appears in the left sidebar, then click โ‹ฎ → Project Settings.

Step 3: Say ciao and open Project Settings

4๏ธโƒฃ Switch Security Preset to Turbo mode
Under Agent Settings → Security Preset (right ๐Ÿ‘‰), choose Turbo mode so Antigravity runs commands without nagging!

๐Ÿšจ TURBO MODE DISCLAIMER: Only enable Turbo mode for code that can be 100% edited and managed by an agent in a workshop, codelab, or test environment! Never outsource your judgment to an agent โ€” DO NOT DO THIS IN PROD!
Step 4: Enable Turbo Mode in Security Preset

Step 7: Prompt 2 โ€” Start the Guided Workshop Journey ๐ŸŽฏ

Inside your [turbo] rails8-app-on-gcp project, paste the Workshop Mission Prompt:

I am attending the Rails 8 on Google Cloud workshop. Please follow the official Google Codelab at: https://codelabs.developers.google.com/codelabs/rails8-on-google-cloud#0 and guide me step-by-step through it! Read instructions at https://github.com/palladius/rails8-app-on-gcp/blob/main/workshop/landing-page/README.md

๐Ÿ“– Antigravity will read workshop/landing-page/README.md, load the repository tutor skills, and run just workshop-test!

Antigravity Prompt

Step 8: Claim GCP Credits on Codelab Page 2 ๐Ÿ’ณ

Go to Page 2 (#1) of the Official Google Codelab to claim your free GCP credits:

๐Ÿ‡ฎ๐Ÿ‡น
  • ๐ŸŒ Open with Google Chrome and make sure you are logged into your personal @gmail.com.
  • ๐ŸŸข Check: Look for the Learning by doing [NO COST] banner (it looks like this ๐Ÿ‘‡) and click Activate!
  • โš ๏ธ Early workshop steps run 100% on localhost while your billing activates.
Scan QR Code to open Codelab

๐Ÿ“ฑ Scan to open Codelab (#1)

๐Ÿ” The redemption banner looks like this: Claim Google Cloud Credits Banner
โšก Out of Antigravity AI quota? Switch model pool under the prompt box to Claude / GPT-OSS or pick a Gemini Flash model (lighter on rate limits).

Step 9: Prompt 3 โ€” Create Your GCP Project (Post-Coupon) โ˜๏ธ

After you have claimed your GCP coupon on Page 2, paste Prompt 3 into Antigravity:

I have claimed a GCP coupon. Create a project under my gmail, name it something like "workshop-rails8-YYYYMMDD" and add some random characters if needed.

๐Ÿš€ What happens next: Antigravity creates your timestamped project (e.g. workshop-rails8-20261007-x9a2), links your trial billing account, updates .env, and verifies everything with just workshop-test!

Canonical Architecture Blueprint ๐Ÿ›๏ธ

Rails 8 on GCP Architecture Diagram

โ˜๏ธ Full Production Reference Architecture: Cloud Run multi-container pod · Cloud SQL PostgreSQL · Private GCS · Secret Manager · Vertex AI

Production-Grade Rails 8 Superpowers ๐Ÿ’Ž

๐Ÿ›ก๏ธ Zero-Trust Security via Cloud IAP

Identity-Aware Proxy protects internal routes with Google IAM authentication & OAuth context โ€” zero VPNs or exposed ports.

๐Ÿ˜ Cloud SQL (Private mTLS Proxy)

Cloud SQL Auth Proxy sidecar container handles mTLS encryption & IAM credentials pooling without opening public IPs (zero 0.0.0.0/0).

๐Ÿ” Private GCS + IAM Blob Signing

ActiveStorage configured with iam: true. No world-readable buckets! Short-lived time-bounded signed URLs via Cloud IAM signBlob.

๐Ÿชต Native Structured JSON Logging

Cloud Logging ingestion with native severity mapping, Error Reporting stack-trace parsing, and Cloud Trace trace context correlation.

๐Ÿ“ฆ Multi-Container Cloud Run Pod

Puma Web + Rails 8 Solid Queue Worker + Cloud SQL Proxy all sharing localhost in one single serverless service instance.

๐Ÿค– Vertex AI Multimodal Pipelines

Asynchronous background Solid Queue jobs driving Google Gemini & Imagen 3 cover image generation via official Vertex AI SDK.

๐Ÿ”‘ Plus: Secret Manager runtime injection ยท Zero committed secrets ยท Automated CI/CD via Cloud Build

Thank You! ๐ŸŽ‰

Let's Build with Google Antigravity 2.0 & Rails 8 ๐Ÿš€

Rails 8 on GCP
Riccardo ๐Ÿฆ– Riccardo: linkedin.com/in/riccardocarlesso
Emiliano ๐ŸŽ๏ธ Emiliano: linkedin.com/in/emilianodellacasa

๐Ÿ‘‰ Official Codelab: codelabs.developers.google.com/codelabs/rails8-on-google-cloud

๐ŸŽต Workshop Anthem Lyria 3 Pro · Vertex AI
โšก 30s Clip ๐ŸŽธ Full 3m Song (3.4MB)