项目作者: ddbj

项目描述 :
SAPPORO-fileserver is divided into file storage for input and file storage for output.
高级语言:
项目地址: git://github.com/ddbj/SAPPORO-fileserver.git
创建时间: 2019-11-11T08:45:44Z
项目社区:https://github.com/ddbj/SAPPORO-fileserver

开源协议:Apache License 2.0

下载


SAPPORO-fileserver

SAPPORO-fileserver is divided into file storage for input and file storage for output. File storage for input uses nginx. The file storage for output uses Minio, which is simple S3-compatible object storage.

Japanese Document

Usage

Using docker-compose

  1. $ git clone git@github.com:ddbj/SAPPORO-fileserver.git
  2. $ ./sapporo-fileserver up
  3. Start SAPPORO-fileserver up...
  4. Access Key : 9b92c81dc5dd16bb1977809ac68d553b
  5. Secret Access Key : 095d71e5fe2f496f04e9f729090db9f5
  6. Creating sapporo-fileserver-output ... done
  7. Creating sapporo-fileserver-input ... done
  8. Please accsess in your brouwser:
  9. Input Server - http://localhost:1123/
  10. Output Server - http://localhost:1124/
  11. Finish SAPPORO-fileserver up...

Start nginx and minio.

  • nginx (Input Server): http://localhost:1123/
    • File root: ./data/input_data
  • minio (Output Server): http://localhost:1124/

  1. $ ./sapporo-fileserver --help
  2. sapporo-fileserver is a set of management commands for SAPPORO-fileserver.
  3. Usage:
  4. sapporo-fileserver up [--access-key <KEY>] [--secret-access-key <KEY>]
  5. sapporo-fileserver show-keys
  6. sapporo-fileserver down
  7. sapporo-fileserver clean
  8. sapporo-fileserver input up
  9. sapporo-fileserver input down
  10. sapporo-fileserver input clean
  11. sapporo-fileserver output up [--access-key <KEY>] [--secret-access-key <KEY>]
  12. sapporo-fileserver output down
  13. sapporo-fileserver output clean
  14. Option:
  15. -h, --help Print usage.

Check minio keys

  1. $ ./sapporo-fileserver show-keys
  2. Start SAPPORO-fileserver show keys...
  3. Minio Access Key: 9b92c81dc5dd16bb1977809ac68d553b
  4. Minio Secret Key: 095d71e5fe2f496f04e9f729090db9f5
  5. Finish SAPPORO-fileserver show keys...

Down servers

  1. $ ./sapporo-fileserver down
  2. Start SAPPORO-fileserver down...
  3. Stopping sapporo-fileserver-input ... done
  4. Stopping sapporo-fileserver-output ... done
  5. Removing sapporo-fileserver-input ... done
  6. Removing sapporo-fileserver-output ... done
  7. Network sapporo-network is external, skipping
  8. Finish SAPPORO-fileserver down...

Deployment

Input server (nginx)

You can change the nginx settings. Edit ./etc/nginx/nginx.conf.


You can download files from Host as http://localhost:1123/file_path

If you want to download files from another container that shares a docker external network as http://sapporo-fileserver-input:8080/file_path

Output server (minio)

In browser, access to localhost:1123.

Mineo Login

Enter the Access Key and Secret Key set above.

Minio Home


Create a bucket. You can do this from the browser or from CLI.

The following is an example of using CLI.

  1. $ docker-compose exec app mc config host add sapporo http://0.0.0.0:80 access_key secret_access_key
  2. $ docker-compose exec app mc mb sapporo/sapporo

This will create a bucket called sapporo.


In Workflow Prepare, specify SAPPORO-fileserver instead of S3.

Test


The result is output as follows.

Output

The entity of output exists under SAPPORO/SAPPORO-fileserver/data/sapporo.

  1. $ ls ./output_data/sapporo
  2. cwl_upload
  3. $ ls ./output_data/sapporo/cwl_upload
  4. small.ERR034597_1_fastqc.html small.ERR034597_1.trimmed_fastqc.html small.ERR034597_1.trimmed.fq