Closed emanuil-tolev closed 6 years ago
Reported to RDSS. I'll take care of this.
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.
Fixed and tested in #245. RDSS project updated.
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.