Skip to content

GoogleCloudPlatform/cloud-run-hello

Repository files navigation

Cloud Run "Hello" container source code

This repository contains the source code of multiple sample applications.

Hello service

A sample service implemented in Go and distributed as a public container image. It is used in the Cloud Run quickstart and is a suggested container image in the Cloud Run UI on Cloud Console.

  • Container Image: us-docker.pkg.dev/cloudrun/container/hello

Run on Google Cloud

Configuration Options

Set the COLOR environment variable to a valid CSS color to change the background color.

Response Formats

By default, the service returns answers in HTML format. You can also request responses in JSON or plain text format by passing a URL query parameter or an HTTP header:

  • URL Query Parameter: Add ?format=json, ?format=text (or plain), or ?format=html.
  • Standard Header: Pass Accept: application/json, Accept: text/plain, or Accept: text/html.

Hello job

A sample job implemented in Go and distributed as a public container image. It is used in the Cloud Run quickstart and is a suggested container image in the Cloud Run UI on Cloud Console.

  • Container Image: us-docker.pkg.dev/cloudrun/container/hello-job
  • Source Code: job/

Placeholder service

A sample service implemented in Go and distributed as a public container image. It is used to create a placeholder revision when setting up Continuous Deployment.

  • Container Image: us-docker.pkg.dev/cloudrun/container/placeholder

About

Demo container for Google Cloud Run

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors