usdot-fhwa-OPS / V2X-Hub

V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
Apache License 2.0
120 stars 67 forks source link

Add volumes for Preemption geofence and TIM MAP xml #211

Closed paulbourelly999 closed 1 year ago

paulbourelly999 commented 3 years ago

Types of Issue

Descriptive summary

Currently some plugins require certain configuration files like the geofence.json for PreemptionPlugin or the MAP.xml for the TIMPlugin. These should be added to docker-compose volumes to allow for editing from the host machine.

V2XHUB version where this issue was discovered

Expected behavior

Allow access to all used configuration files for plugins from the host machine via volumes.

Actual behavior

MAP.xml and geofence.json files are included in non default paths that are not contained in volumes so in order to get them to load we have to adjust the plugin configurations to point to them and/or place them in a volume to which the plugin configuration points.

Steps to reproduce the actual behavior

  1. Start PreemptionPlugin with default configuration
  2. Notice repeated file not found exceptions
  3. Adjust PreemptionPlugin configuration to point to sample file under /home/V2X-Hub/src/v2i-hub/PreemptionPlugin/src/include/sample_geofence.json
  4. Restart Plugin
  5. Exception no longer repeated.

Related work

kjrush commented 1 year ago

Using same volume as J2735 MAP files resolves issue, fix not needed for this issue.