This is a sample repository that runs a "server" in bash that can be deployed on Google Cloud Run.
See also https://github.com/matti/google-cloud-run-shell for real shell access
-
Enable Cloud Build and Cloud Run:
gcloud services enable --project "${PROJECT_ID}" \ cloudbuild.googleapis.com \ run.googleapis.com
-
Build the container:
gcloud builds submit \ --project "${PROJECT_ID}" \ --tag "gcr.io/${PROJECT_ID}/hello-world-bash" \ .
-
Deploy the container:
gcloud beta run deploy "hello-world-bash" \ --project "${PROJECT_ID}" \ --platform "managed" \ --region "us-central1" \ --image "gcr.io/${PROJECT_ID}/hello-world-bash" \ --allow-unauthenticated
-
That's it!