This sample uses the CloudEvents SDK to send and receive a CloudEvent on Cloud Run.
Build the Docker image:
docker build -t cloudevent_example .
Run the image and bind the correct ports:
docker run --rm -p 8080:8080 -e PORT=8080 cloudevent_example
Send an event to the container:
docker run -t cloudevent_example send_cloudevent.py