This sample shows how to create a service that processes Pub/Sub messages.
Use it with the Cloud Pub/Sub with Cloud Run tutorial.
docker build --tag pubsub-tutorial:java .
docker run --rm -p 9090:8080 pubsub-tutorial:java
mvn clean verify
gcloud builds submit --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/pubsub-tutorial
gcloud alpha run deploy pubsub-tutorial --image gcr.io/${GOOGLE_CLOUD_PROJECT}/pubsub-tutorial