datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
8 stars 11 forks source link

Improve custom_header.yaml management #31

Open Zebreu opened 1 year ago

Zebreu commented 1 year ago

custom_header.yaml is a file crucial to the software but is not read alongside the input data. Instead, it's copied into the docker image then reused for any request. We should have a mechanism that allows to offer one as an input, and at least we should have setup instructions: per deployment, make sure data mappings are accurate then move it to the local_data/ directory so that the Docker build can copy it.

Some of the code around the file also assumes some absolute paths and we'll need to be careful there.

Zebreu commented 1 year ago

The server endpoint "provide_files" enables this.