Skip to content

Latest commit

 

History

History

cloud_run_cloud_events

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Deploying a CloudEvent Function to Cloud Run with the Functions Framework

This sample uses the CloudEvents SDK to send and receive a CloudEvent on Cloud Run.

How to run this locally

Build the Docker image:

docker build -t cloud_event_example .

Run the image and bind the correct ports:

docker run --rm -p 8080:8080 -e PORT=8080 cloud_event_example

Send an event to the container:

docker run -t cloud_event_example send_cloud_event.py