project-bluebird / bluebird

Server to communicate with NATS air traffic simulator and Bluesky
MIT License
10 stars 4 forks source link

Issue/190/bluebird docker #87

Closed tallamjr closed 4 years ago

tallamjr commented 4 years ago

Fixes https://github.com/alan-turing-institute/nats/issues/190

It turns out that the main blocker nats#190 was that `MQ_URL` was being overridden inside
`bluebird/run.py:16` and `bluebird/run.py:61`

This prevents the Flask server from coming up when running in a container.

Running `bluebird` locally should then be run in a way something like:

export MQ_URL="amqp://guest:guest@localhost:5672/%2F" && python run.py --sim-type=machcoll --sim-host=localhost

Whereas for running inside the docker container, this `$MQ_URL` should be `unset` _before_ firing
up, as the default (`MQ_URL=amqp://guest:guest@rabbitmq:5672/%2F`) is required for the connection to
take place.

REF:
https://github.com/alan-turing-institute/nats/issues/190

        modified:   tests/integration/machcoll/docker-compose.yml

        modified:   run.py