Skip to content

mco-gh/cloud-run-bash-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Run Server in Bash

Run on Google Cloud

This is a sample repository that runs a "server" in bash that can be deployed on Google Cloud Run.

Setup

  1. Enable Cloud Build and Cloud Run:

    gcloud services enable --project "${PROJECT_ID}" \
      cloudbuild.googleapis.com \
      run.googleapis.com
  2. Build the container:

    gcloud builds submit \
      --project "${PROJECT_ID}" \
      --tag "gcr.io/${PROJECT_ID}/hello-world-bash" \
      .
  3. 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
  4. That's it!

About

Example webserver in bash on Google Cloud Run

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 68.1%
  • Dockerfile 31.9%