forked from dptools/dpdash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSingularity
98 lines (70 loc) · 2.73 KB
/
Singularity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Bootstrap:docker
From:centos:7.4.1708
%labels
AUTHOR jisoolily_jeong@harvard.edu
AUTHOR timothy_okeefe@harvard.edu
AUTHOR hhoke@fas.harvard.edu
AUTHOR and MAINTAINER tbillah@bwh.harvard.edu
%post
## Set data path
mkdir -p /sw/apps/
mkdir -p /data/dpdash/
cd /sw/apps/
## update yum and install some useful things
yum -y update
yum -y groupinstall "Development tools"
yum -y install epel-release
yum -y install net-tools telnet wget git tar which \
whereis bzip2 p7zip vim vi vixie-cron cronie sudo
## install the RabbitMQ message queue
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v19.3.6.13/erlang-19.3.6.13-1.el7.centos.x86_64.rpm
yum -y install erlang-19.3.6.13-1.el7.centos.x86_64.rpm
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_9/rabbitmq-server-3.6.9-1.el6.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum -y install rabbitmq-server-3.6.9-1.el6.noarch.rpm
## install miniconda3
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda3-latest-Linux-x86_64.sh
/bin/bash Miniconda3-latest-Linux-x86_64.sh -b -p miniconda3/
source miniconda3/bin/activate
## install the Node.js run-time
curl --silent --location https://rpm.nodesource.com/setup_16.x | bash -
yum -y install nodejs
## install the MongoDB document database
echo -e "[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc" >> /etc/yum.repos.d/mongodb-org-4.4.repo
yum -y install mongodb-org
## install the Celery asyncronous task queue
pip install "celery==4.3.0" "vine<5.0.0"
## clone the DPdash digital phenotyping dashboard
git clone https://github.com/PREDICT-DPACC/dpdash.git
cd dpdash
## use version of node found in .nvmrc
npm install -g n
n auto
export PATH=/usr/local/bin/node:$PATH
## use latest version of npm
npm install -g npm@latest
## install DPdash dependencies
npm install
npm run transpile
## install the DPPY DPdash file scanner/importer
cd ..
git clone --single-branch --branch py3 https://github.com/PREDICT-DPACC/dppy.git
cd dppy
python setup.py install
rm -rf build dist dppy.egg-info
cd ..
## install Supervisord process control system
pip install supervisor
## clear all caches
yum clean all
conda clean -y --all
rm -rf ~/.cache/pip/*
%environment
## miniconda3 pnlpipe3
export PATH=/sw/apps/miniconda3/bin:$PATH
export PATH=/usr/local/bin/node:$PATH