command
Version:
v0.0.0-...-19218e7
Opens a new window with list of versions in this module.
Published: Jul 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
PubSub Forwarder - A Cloud Run service
Deployment
-
Build the image from the 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.
$ 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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.