tapis-project / camera-traps

BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

Automate config and compose file generation #36

Open joestubbs opened 3 months ago

joestubbs commented 3 months ago

The current CT config files and docker-compose are unwieldy, with many configurations duplicated across several files, and subfor ltle changes are required in certain situations that will not be obvious to operators (e.g., changing the image name of certain plugins based on the architecture). We need a program that can take a high-level config and generate the equivalent of a "release" directory, with the compose and all of the configs ready to go.

The high-level config should consist of:

  1. architecture (x86 vs arm, etc)
  2. source images (directory or URL)
  3. model (the id of a model in the MC, longer term)
  4. log level (optional)
  5. release version (optional, default to latest)
  6. Advanced custom config (optional, to set configs like saving threshold in the storing plugin)

This should probably be a comand-line program at a minimum.