observatorycontrolsystem / ocs_example

An example OCS project
GNU General Public License v3.0
5 stars 2 forks source link

Feature/add science archive #7

Closed timbeccue closed 3 years ago

timbeccue commented 3 years ago

Ok, here is a draft with a working science archive and an auto-ingested test frame.

Two things to note:

  1. I'm not sure if the example ingester script would be better suited in the README or in its own example folder with an actual script pointing to our example data that people can run in one step.

  2. The initial ingester script that adds a bucket, enables versioning, and uploads a file is currently run in the science-archive startup command. However, it would also work in a separate 'ingester' service that is included but commented out. We discussed both. However, I wasn't able to get the separate service to wait to start until the science archive was serving the api (the 'depends on: service healthy' seemed to just wait for the archive service to start, but wouldn't necessarily wait for the api to be ready). So I don't think there is any added benefit to having a separate ingester service and the code would be simpler if I removed it. Let me know if I can delete it, or if there is good reason to keep investigating that option.