digibib / koha-docker

Koha docker image builders
MIT License
53 stars 18 forks source link

Your koha-conf.xml does not contain a valid upload_path. #14

Open fiedl opened 7 years ago

fiedl commented 7 years ago

I'm trying to enable file uploads as shown in http://bywatersolutions.com/2017/06/08/attach-file-marc-records/, which works fine. But when uploading a file, I get

Your koha-conf.xml does not contain a valid upload_path.

Aparently, this is true as https://github.com/digibib/koha-docker/blob/master/files/templates/instance/koha-conf.xml.tmpl just contains

<upload_path></upload_path>

Is there a nice way to set the upload_path through docker-compose and point the upload path to a docker-compose volume? For example, can I set the upload path through an environment variable?

Thanks!

bensinober commented 7 years ago

Hi, that could easily be added. We could add an ENV var UPLOAD_PATH to the template, and you could then point that to e.g. an already mounted volume at /var/lib/koha, or wherever.

We're currently moving our code to gitlab for better CI and build routines, but we'll continue updating this repo as well.