Service: Fileselector - SeaDataCloud/Documentation GitHub Wiki

File selector service

Last updated: 2020-07-02 (Merret)

Description

The file selector provides a graphical interface to select file/s from the user's workspace and return the path of the file/s.

Deployment

To be deployed on the master-node (next to NextCloud).

  • Create a home directory for the fileselector (wherever your service directories are located), call it fileselector. Cd into it and add the docker-compose file:
  • docker-compose.yml (https://github.com/SeaDataCloud/vre-config/blob/master/services/fileselector/docker-compose.yml)
  • In the docker-compose file, make sure the bind-mounted volume is the volume where the NextCloud data is sitting, by changing the first part of this line: - /nfs-export:/var/www/html/fileselector/storage/app/data in the volumes section.
  • Start the service
mkdir fileselector
cd fileselector
wget https://raw.githubusercontent.com/SeaDataCloud/vre-config/master/services/fileselector/docker-compose.yml
vi docker-compose.yml
docker-compose up -d && docker-compose logs --tail=100 -f

Now it listens in port 80 inside the docker-network vre_proxy. The VRE's reverse proxy needs to be configured to proxy requests to the service, so it can be reached from outside.

Usage

The fileselector can be used by services in two ways:

  • The fileselector is called before the service is started, and the service is started with the path of the selected file already passed to the service during start (e.g. VLIZ BioQC service).
  • Or it can be called and displayed by the service after startup, e.g. in an iframe (e.g. in ERDDAP subsetting service).