Using local volumes #377
-
Hi, I'm struggling to use files from a local directory. If I wanted to use files in say '/home/john/Pictures' , would it be 'local:///home/john/Pictures' I use? Or does the path depend on where BIIGLE is installed? p.s Thanks for writing some very useful software! Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've also tried a simple http server locally with "python3 -m http.server' in a folder with some images, then trying "http://0.0.0.0:8000/" as the Volume url, but I get a connection error. Thanks |
Beta Was this translation helpful? Give feedback.
-
As BIIGLE runs inside Docker containers, the file system of your host machine is not accessible by default. File system volumes must be explicitly configured with Docker for BIIGLE to be able to access files on your host machine. These volumes are configured in the file - /home/john/Pictures:/vol/Pictures The syntax of the volume definition is If you add new file system volumes, you also have to configure them as new storage disks in BIIGLE. This is done in the file 'pictures' => [ // This is the name of the storage disk.
'driver' => 'local',
'root' => '/vol/Pictures', // This is the target path defined above.
], If you now have the directory of images |
Beta Was this translation helpful? Give feedback.
As BIIGLE runs inside Docker containers, the file system of your host machine is not accessible by default. File system volumes must be explicitly configured with Docker for BIIGLE to be able to access files on your host machine. These volumes are configured in the file
docker-compose.yaml
. In the default configuration, only the./storage
directory (of the biigle repository) is mounted as file system volume. You can either store all images/videos that you want available in BIIGLE there (in./storage/images
, see below) or add new file system volumes. Example:- /home/john/Pictures:/vol/Pictures
The syntax of the volume definition is
[source path of host]:[target path of container]
.If you …