CottageLabs / willow

Willow is an implementation of the Fedora/Samvera stack by Cottage Labs. It is built with Docker containers, which simplify development and deployment onto live services.
http://willow.cottagelabs.com/
6 stars 2 forks source link

Make sure derivatives and temporary files are in volumes #243

Closed emanuil-tolev closed 6 years ago

emanuil-tolev commented 7 years ago

A couple of directories used to store thumbnails (derivatives_path) and temporary data (working_path) may not be configured correctly in Willow by default. Data may be going to the Docker container's filesystem rather than a volume. That's bad for the layered nature of aufs, and on top of that we may lose certain thumbnails when the Willow instance is restarted.

Make sure the correct volume information is stored in our docker-compose.yml for production deployments (and relay the info to RDSS), for:

Set these up as ENV vars, so that it can always be verified that the value of the ENV vars explicitly == the volumes defined for a particular deployment.

Then confirm that the volumes are being filled with data by uploading works on the web UI and observing both directories on the Docker host. watch -d -n 0.5 ls <dir> would work for that.

emanuil-tolev commented 7 years ago

Reported to RDSS. I'll take care of this.

emanuil-tolev commented 7 years ago

Actually, on reading the Hyrax configuration file more closely, Rails.root + /tmp is used quite a lot. I think we just need to define a new volume, no code changes or new env vars. There's like 5 things that default to being stored there, and while we could change them all, it seems easier to just mount Rails.root + /tmp appropriately as a volume.

emanuil-tolev commented 7 years ago

https://github.com/samvera/hyrax/issues/1660

emanuil-tolev commented 6 years ago

Fixed and tested in #245. RDSS project updated.