Skip to content

teleranek/transitdata-tripupdate-processor

 
 

Repository files navigation

Build Status branch: master Build Status branch: develop

Transitdata-tripupdate-processor

This project is part of the Transitdata Pulsar-pipeline.

Description

Application for creating GTFS-RT Trip Update-messages and publishing them to Pulsar topic(s).

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

Launch Docker container with

docker-compose -f compose-config-file.yml up <service-name>

Tests:

We're separating our unit & integration tests using this pattern.

Unit tests:

  • add test classes under ./src/test with suffix *Test.java
  • mvn clean test -P unit-test

Integration tests:

  • add test classes under ./src/integration-test with prefix IT*.java
  • mvn clean verify -P integration-test

About

Generates GTFS-RT TripUpdates from Transitdata source data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.1%
  • Shell 2.9%
  • Dockerfile 1.0%