Open AnasGhrab opened 6 years ago
Maybe a solution is to use something like this https://github.com/ovh/svfs ?
Django offers various possibilities to run remote file systems but yes the easiest way is to mount the external FS locally, like svfs proposes, and then use it in the composition.
Hi,
I have mounted the ovh-storage
inside the data/media/items folder, but Telemeta can't read files inside of it. I think it's a problem of permissions :
telemeta@projets:~/Telemeta/data/media/items$ rclone mount ovh-storage:media ovh-storage &
[1] 10391
telemeta@projets:~/Telemeta/data/media/items$ mount
[...]
ovh-storage:media on /home/telemeta/Telemeta/data/media/items/ovh-storage type fuse.rclone (rw,nosuid,nodev,relatime,user_id=1003,group_id=1003)
telemeta@projets:~/Telemeta/data/media/items$ ls -al
total 40
drwxr-xr-x 11 www-data www-data 4096 Oct 26 14:05 .
drwxr-xr-x 8 www-data www-data 4096 Jul 31 18:46 ..
drwxr-xr-x 3 www-data www-data 4096 Jun 24 23:01 2007
drwxr-xr-x 6 www-data www-data 4096 Oct 10 12:25 2018
drwxr-xr-x 3 www-data www-data 4096 Jun 9 11:57 congres
drwxr-xr-x 2 www-data www-data 4096 Jun 24 22:48 Guerm
drwxr-xr-x 1 telemeta telemeta 0 Nov 3 07:52 ovh-storage
drwxr-xr-x 2 www-data www-data 4096 Jul 26 17:25 Stambeli
drwxr-xr-x 2 www-data www-data 4096 Jun 24 22:56 Tataouine
drwxr-xr-x 2 www-data www-data 4096 Jun 15 16:17 tbal_ghomrassen
drwxr-xr-x 2 www-data www-data 4096 May 21 19:52 tests
It's not possible to change the permission of the mounted folder :
telemeta@projets:~/Telemeta/data/media/items$ sudo chown -R www-data:www-data ovh-storage/
chown: cannot access 'ovh-storage/': Permission denied
Any idea of how to resolve the problem ? Thanks !
Is it possible to change the data section in docker-compose to read data from a container using the API OpenSlack ?