This repository contains the source code of multiple sample applications.
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
Set the COLOR environment variable to a valid CSS color to change the background color.
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(orplain), or?format=html. - Standard Header: Pass
Accept: application/json,Accept: text/plain, orAccept: text/html.
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/
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