TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 30 forks source link

How can I launch a multi-agency configuration of TheTransitClock? #149

Closed ciolt closed 5 years ago

ciolt commented 5 years ago

Hi,

I'm working on a real-time transit system in South Florida, and I can't seem to get the dockerized TC (see: transitclockDocker@MBTA_Trial) to work. It keeps throwing database connections errors in my cscape/wayline-interchange repo and I'm not entirely sure why. It may have something to do with the setup and how it's launched.

The wiki article about multi-agency config is unclear on how commands should be run chronologically and why. So far it's marginally helped but TC still doesn't run successfully. I'd like to know how exactly one would go about launching TC with multiple agencies, in terms of a list of which commands go when.

Just a basic idea of what I'm doing:

Haven't really had any luck getting this to work. Help is greatly appreciated, thank you!

scrudden commented 5 years ago

There are two issues here.

  1. The docker installer failing.
  2. An explanation of the commands used to do a multi-agency installation.
scrudden commented 5 years ago

The docker installer has had problems recently due to the archiving of some debian packages. I will look at this one and update one of the branches to work with a newer FROM than maven:3.3-jdk-8. This should sort this out.

ciolt commented 5 years ago

I'm aware of the Docker installer's problem, and my Docker container works just fine (after changing the image and making some other changes). Of course, I can't launch TC properly if I don't know how to do it. I believe Swiftly uses a multi-agency installation, though.

scrudden commented 5 years ago

@vsperez has updated the wiki with more information. I hope this helps.

There is some more (incomplete) doucmentation here docs

ciolt commented 5 years ago

Thanks Sean (and @vsperez), I have it working now. 👍

ciolt commented 5 years ago

Update: I've clarified the documentation on the wiki a little further (with a diagram).

Should be easier now to understand: https://github.com/TheTransitClock/transitime/wiki/Multi-Agency-Configuration

scrudden commented 5 years ago

Thanks. That's great!!!