Commit Graph
6 Commits
Author SHA1 Message Date
John Colvin c58a2f90e0 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-10-30 19:31:40 +00:00
John Colvin a9a5b563a0 Add api server to docker compose 2024-10-30 19:31:40 +00:00
John Colvin 84183d2741 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-10-30 19:31:40 +00:00
John Colvin acb44c836d cleanup: Remove unnecessary env vars from webapp docker compose 2024-10-30 19:31:40 +00:00
John Colvin 20e959fea3 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-10-30 19:31:39 +00:00
John Colvin a1d7607065 Configure apps as a distributed system via Docker compose 2024-10-30 19:31:39 +00:00