pubsub_forwarder

command
v0.0.0-...-246cd80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

PubSub Forwarder - A Cloud Run service

Deployment

  • Build the image from the root directory.

    • In root directory,
    $   docker build -f cmd/pubsub_forwarder/Dockerfile . -t us-docker.pkg.dev/public-routing-data-backup/cloudrun/pubsub-forwarder:latest
    
    • Don't forget to upload it to the registries:
    $   docker push us-docker.pkg.dev/public-routing-data-backup/cloudrun/pubsub-forwarder:latest
    
  • Deploy the image by setting the output bucket BIGQUERY_BUCKET for converted updates.

    • Example:
    $   gcloud run deploy pubsub-forwarder \
        --image us-docker.pkg.dev/public-routing-data-backup/cloudrun/pubsub-forwarder:latest \
        --no-allow-unauthenticated \
        --update-env-vars PROJECT=public-routing-data-backup,CLOUD_TASK_LOCATION=us-central1,CLOUD_TASK_QUEUE=conversion-queue
    
  • [Only need once] Create a Cloud task queue:

    $   gcloud tasks queues create conversion-queue \
        --routing-override=service:rv-converter \
        --max-concurrent-dispatches=1000 \
        --max-attempts=50
    

    To update the queue:

    $   gcloud tasks queues update conversion-queue \
        --routing-override=service:rv-converter \
        --max-concurrent-dispatches=1000 \
        --max-attempts=50
    
  • [Only need once] Hook up a PubSub channel with the Cloud Run service through PubSub (see instructions). Make sure you enable authentication.

  • [Only need once] Hook up a PubSub channel with the archive source bucket (see instructions).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL