Application for inserting HFP data to PostgreSQL TimescaleDB.
This project depends on transitdata-common project.
Either use released versions from public maven repository or build your own and install to local maven repository:
cd transitdata-common && mvn install
mvn compile
mvn package
- Run this script to build the Docker image
Requirements:
- 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 Transitlog database is read from file.
- Set filepath via env variable FILEPATH_CONNECTION_STRING, default is
/run/secrets/db_conn_string
- Format of connection string is
jdbc:postgresql://localhost:5432/vehicles?user=hfp_writer&password=hfp_writer
- Set filepath via env variable FILEPATH_CONNECTION_STRING, default is
All other configuration options are configured in the config file which can also be configured externally via env variable CONFIG_PATH