Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 569 Bytes

File metadata and controls

23 lines (15 loc) · 569 Bytes

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