Commit Graph
8 Commits
Author SHA1 Message Date
John Colvin 66dc76b9ff Rewrite much of compose.yaml 2024-11-29 15:05:54 +00:00
John Colvin 44f9400499 Incorporate env files into docker compose
In order to support local (ephemeral) config. For example, to run sparkd
with replay md to troubleshoot an issue.
2024-11-29 15:05:54 +00:00
John Colvin 457e619261 refactor: Organize libspark proj w/ stuttering include
This new structure provides several benefits:

* Allows us to install multiple CMake projects in the same destination
  dir (without include path conflicts).
  - This makes shipping the trading algo sdk a trivial excercise. Simply
    copy the lib and include dirs from the install dest. That's it!
* Puts us in a position to break up the monolithic libspark into smaller
  modules, which are easier to manage.
2024-11-29 15:05:10 +00:00
John Colvin 6202ba52b4 Add api server to docker compose 2024-11-29 15:00:58 +00:00
John Colvin 8afac9e4ac Rename pingtest "sparkd-ping-test", make it depend on sparkd
Add it to a "ping-test" profile, as we may add similar tests for other services
2024-11-29 14:58:54 +00:00
John Colvin 5602c6c642 cleanup: Remove unnecessary env vars from webapp docker compose 2024-11-29 14:58:54 +00:00
John Colvin 5819bfdd87 fix: Ensure md-publisher waits for pubsub and sparkd
Bugs (fixed):
  * md-publisher silently fails if it tries to connect before those services are "ready".

The Docker compose "depends_on" property ensures sparkd and pubsub
containers are up, but doesn't prevent startup race bugs (e.g., if
md-publisher and pubsub start around the same time, and md-publisher
tries to connect before pubsub has started accepting connections). To
address these race conditions, we use a nifty tool called "dockerize"

References:
  * https://github.com/jwilder/dockerize
2024-11-29 14:57:44 +00:00
John Colvin 00c110beb2 Configure apps as a distributed system via Docker compose 2024-11-29 14:57:44 +00:00