🌐
GitHub
github.com › ejangi › rails-google-cloud-run
GitHub - ejangi/rails-google-cloud-run: A test deployment of a Rails 6 app to Google Cloud Run using Cloud Build · GitHub
A test deployment of a Rails 6 app to Google Cloud Run using Cloud Build - ejangi/rails-google-cloud-run
Author   ejangi
🌐
GitHub
github.com › mattes › google_cloud_run
GitHub - mattes/google_cloud_run: Rails on Google Cloud Run
Rails on Google Cloud Run. Contribute to mattes/google_cloud_run development by creating an account on GitHub.
Starred by 10 users
Forked by 2 users
Languages   Ruby 89.5% | HTML 8.2% | JavaScript 1.2% | CSS 1.1% | Ruby 89.5% | HTML 8.2% | JavaScript 1.2% | CSS 1.1%
🌐
Google
docs.cloud.google.com › ruby › running rails on the cloud run environment
Running Rails on the Cloud Run environment | Ruby | Google Cloud Documentation
The code for the Rails sample app is in the GoogleCloudPlatform/ruby-docs-samples repository on GitHub. ... Go to the directory that contains the sample code and run the following commands to make sure that the application is properly set up ...
🌐
GitHub
gist.github.com › iEv0lv3 › 8f877bbd3d27f6a670435bda0650d7d8
GCP Cloud Run :: Docker :: Rails · GitHub
Rails Documentation: Active Storage Overview — Ruby on Rails Guides · I used GCP Cloud Build, Container Registry, and Cloud Run to deploy the production application. My goal was to create the most slim and efficient containers possible.
🌐
GitHub
github.com › flamingo-run › rails-cloud-tasks
GitHub - flamingo-run/rails-cloud-tasks
# ./config/initializers/rails_cloud_tasks.rb require 'rails-cloud-tasks' RailsCloudTasks.configure do |config| config.service_account_email = 'test-account@test-project.iam.gserviceaccount.com' config.project_id = 'my-gcp-project' # This is not needed if running on GCE config.location_id = 'us-central1' config.scheduler_file_path = './custom_path/scheduler_jobs.yml' config.scheduler_prefix_name = 'my-app-name' # Base url used by Cloud Tasks to reach your application and run the tasks config.host = 'https://myapplication.host.com' config.tasks_path = '/v2/tasks' # default: '/tasks' # Inject routes into application config.inject_routes end
Author   flamingo-run
🌐
GitHub
github.com › zaru › cloudrun-rails-demo
GitHub - zaru/cloudrun-rails-demo: Ruby on Rails on Cloud Run (GCP) demo
Ruby on Rails on Cloud Run (GCP) demo. Contribute to zaru/cloudrun-rails-demo development by creating an account on GitHub.
Author   zaru
🌐
Google Skills
skills.google › focuses › 20049
Use Ruby on Rails with Cloud SQL for PostgreSQL on Cloud Run | Google Skills
February 18, 2026 - ACTIVE: * ACCOUNT: {{{user_0.username ... account, run: $ gcloud config set account `ACCOUNT` (Optional) You can list the project ID with this command: ... Note: For full documentation of gcloud, in Google Cloud, refer to the gcloud CLI overview guide. The source code for the Rails sample app is in the GoogleCloudPlatform/ruby-docs-samples repository on GitHub...
🌐
DEV Community
dev.to › sumiki › rails6-on-google-cloud-run-5k3
Rails6 on Google Cloud Run - DEV Community
July 15, 2020 - The source code I tried in this article is here. https://github.com/sumiki/cloud_run_rails
Find elsewhere
🌐
GitHub
github.com › mukopikmin › rails-cloud-run-sample
GitHub - mukopikmin/rails-cloud-run-sample
Rails CLoud Run Sample Requirements Deploy Create Cloud SQL instance Push image to Container Registry Deploy to Cloud Run
Author   mukopikmin
🌐
GitHub
github.com › GoogleCloudPlatform › getting-started-ruby
GitHub - GoogleCloudPlatform/getting-started-ruby: A tutorial for creating a complete application using Ruby on Google Cloud Platform
November 9, 2023 - And then run the Rails web server: $ rails server · $ bundle install $ bundle exec rspec · Install the gcloud CLI: https://cloud.google.com/sdk/docs/install-sdk · And then deploy the application: $ gcloud app deploy · See CONTRIBUTING.md ·
Starred by 103 users
Forked by 60 users
Languages   Ruby 71.1% | HTML 17.8% | Shell 7.7% | CSS 1.7% | JavaScript 1.7% | Ruby 71.1% | HTML 17.8% | Shell 7.7% | CSS 1.7% | JavaScript 1.7%
🌐
Hansschnedlitz
hansschnedlitz.com › writing › 2021 › 01 › 18 › pull-request-previews-with-rails-cloud-run-and-github-actions
Pull Request Previews with Rails, Cloud Run, and GitHub ...
January 18, 2021 - Create a simple Rails application for demo purposes. Build an application Docker image. Create a Cloud Run Service that runs our application container. Set up a GitHub action that automatically builds our application container and deploys it ...
🌐
GitHub
github.com › gaizkaeu › gcp-cloud-run-ready-ruby-on-rails
GitHub - gaizkaeu/gcp-cloud-run-ready-ruby-on-rails: Ruby on Rails template ready for deploying in GCP Cloud Run with GitHub Actions Pipeline
Ruby on Rails template ready for deploying in GCP Cloud Run with GitHub Actions Pipeline - gaizkaeu/gcp-cloud-run-ready-ruby-on-rails
Author   gaizkaeu
🌐
DEV Community
dev.to › hadyrashwan › ruby-on-rails-with-google-cloud-run-4hb
Google Cloud Run and MySql using Ruby On Rails - DEV Community
August 25, 2020 - Click on Connect with cloud shell. Connect using gcloud by pressing enter in the terminal you should see a similar command shown in your shell. Enter the root password that you choice earlier and press enter. Should now be connected. Create the database using the following command. Check that the database exists. Clone this repository https://github.com/hadyrashwan/ruby-on-rails-getting-started and enter the folder.
🌐
GitHub
github.com › GoogleCloudPlatform › appengine-ruby
GitHub - GoogleCloudPlatform/appengine-ruby: Optional integration library for the Ruby runtime for Google App Engine
Automatic Stackdriver instrumentation for Rails apps. This means logs, error reports, and latency traces are reported to the cloud console, and debugger integration is available. A client and rake tasks for executing application commands in the App Engine environment against production resources, useful for tasks such as running ...
Starred by 53 users
Forked by 22 users
Languages   Ruby 66.6% | Shell 33.4% | Ruby 66.6% | Shell 33.4%
🌐
Medium
medium.com › google-cloud › google-cloud-run-on-rails-a-real-life-example-part-1-preparing-the-ground-705c94ab8a7a
Google Cloud Run on Rails: a real life example (Part 1: preparing the ground) | by Laurent Julliard | Google Cloud - Community | Medium
May 23, 2019 - Google Cloud recently launched Cloud Run, the new kid on the block from the serverless family and a game changer in many respects. In a more mature Cloud market, serverless services are becoming more and more attractive as they take care of many IT chores for you and abstract away any notion of server or infrastructure. With this 4 part tutorial you’ll learn, step by step, how to deploy a non-trivial (read “not a Hello World!”) Rails application in production with Cloud Run.
Top answer
1 of 2
4

I think you cannot.

I'm familiar with Cloud Run but I'm not familiar with rails.

I assume you'd need to be able to shell into a container in order to be able to run IRB. Generally, you'd do this by asking the runtime (Docker Engine, Kubernetes, Cloud Run) to connect you to the container so that you could do this.

Cloud Run does not (appear) to permit this. I think it's a potentially useful feature request for the service. For those containers that contain shells, this would be the equivalent of GCE's gcloud compute ssh.

Importantly, your app may be serviced by multiple, load-balanced containers and so you'd want to be able to console into any of these.

However, you may wish to consider alternatives mechanisms for managing your app: monitoring, logging, trace etc. These mechanisms should provide you with sufficient insight into your app's state. Errant container instances should be terminated.

This follows the concept of "pets vs. cattle" whereby, instead of nurturing individual containers (is one failing?), you nurture the containers holistically (is the service comprising many containers failing?)

For completeness, if you think that there's an issue with a container image that you're unable to resolve through other means, you could run the image elsewhere (e.g. locally) where you can use IRB. Since the same container image will behave consistently wherever it's run, you should be able to observe the issue using IRB locally too.

2 of 2
0

Conventionally, as DazWilkin pointed out, it's not possible.

However, there is a workaround.

https://github.com/rails/web-console

This allows you to access the console via a browser section. Please note that this poses a significant security risk, be aware.

🌐
Stack Overflow
stackoverflow.com › questions › 58540936 › unable-to-deploy-rails-app-into-google-cloud-run
docker - Unable to deploy Rails app into Google Cloud Run - Stack Overflow
October 24, 2019 - $ gcloud beta run deploy whale-on-rails --image gcr.io/$PROJECT_ID/whale_on_rails \ 4m 58s Ruby 2.6.5 --set-cloudsql-instances whale-on-rails-production \ --region us-central1 --allow-unauthenticated --platform managed