This project is part of the Transitdata Pulsar-pipeline.
Application functionality:
- Connect to Pubtrans ptROI and ptDOI4
- Fetch rows of data from different tables
- Include additional journey-related metadata from Redis
- Connect to a local Pulsar cluster
- Produce data to pulsar topics
This project depends on transitdata-common project.
mvn compile
mvn package
- Run this script to build the Docker image
Requirements:
- Local Pulsar Cluster
- By default uses localhost, override host in PULSAR_HOST if needed.
- Tip: f.ex if running inside Docker in OSX set
PULSAR_HOST=host.docker.internal
to connect to the parent machine
- Tip: f.ex if running inside Docker in OSX set
- You can use this script to launch it as Docker container
- By default uses localhost, override host in PULSAR_HOST if needed.
- Connection string to Pubtrans database is read from file.
- Set filepath via env variable FILEPATH_CONNECTION_STRING, default is
/run/secrets/pubtrans_community_conn_string
- Set filepath via env variable FILEPATH_CONNECTION_STRING, default is
All other configuration options are configured in the config files which can also be configured externally via env variable CONFIG_PATH.
Launch Docker container with
docker-compose -f compose-config-file.yml up <service-name>