This sample uses the CloudEvents SDK to send and receive a CloudEvent on Cloud Run.
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