基于Nextflow的宏基因组有参分析-VI Nextflow tower本地配置

测试环境

Ubuntu 18.04 (Root权限)

AWS安全组配置:

Custom TCP TCP 8000 0.0.0.0/0 ss
Custom TCP TCP 8000 ::/0 ss

安装jdk(>1.8)及编译依赖

sudo apt update
sudo apt install openjdk-8-jdk-headless
sudo apt install build-essential

安装docker,docker-compose

sudo apt install docker.io
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

更改docker权限(此处需要登出并重新登陆)

sudo usermod -a -G docker $USER

下载nf-tower

## install git
sudo apt install git
git clone https://github.com/seqeralabs/nf-tower

配置环境变量

此处需要申请一个发邮件的服务器,nf推荐了https://sendgrid.com

在左侧选项栏点击Settings–>APIKeys–>Create API Key–>输入key name并选择Full Access 点击生成的秘钥直接拷贝到剪切板,如“SG.dsVDEPp9SCOJFxe8QObVcAxxxxxxxxxxxxx”

编辑配置文件nf-tower/tower-backend/src/main/resources/application.yml

...
  smtp:
    host: "smtp.sendgrid.net"
    port: "587"
    auth: "${TOWER_SMTP_AUTH:true}"
    user: "apikey"
    password: "SG.dsVDEPp9SCOJFxe8QObVcAxxxxxxxxxxxxx"
...

编译tower

make build
make run

使用Nextflow Tower

使用方法基本与tower.nf网站一致。有一点需要注意,如果nextflow部署在服务器上,需要修改邮件中的链接地址:

  • 邮件中链接为:http://localhost:8000/auth?uid=xxxx
  • 修改为:http://服务器地址:8000/auth?uid=xxxx

(未完)

Related

comments powered by Disqus