Skip to content

HSLdevcom/transitdata-pubtrans-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Transitdata-pubtrans-source

This project is part of the Transitdata Pulsar-pipeline.

Description

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

Building

Dependencies

This project depends on transitdata-common project.

Locally

  • mvn compile
  • mvn package

Docker image

Running

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
    • You can use this script to launch it as Docker container
  • 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

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>