-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
executable file
·70 lines (63 loc) · 1.83 KB
/
Dockerfile
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
# Base image
FROM python:3.6-stretch
LABEL maintainer="Patrick Lombard<patrick.lombard@gosh.nhs.uk>"
# Install prequisites (last four entries added by me - PD)
RUN apt-get update && apt-get -y install \
libpq-dev \
cpanminus \
build-essential \
git \
unzip \
curl \
python-pip \
libpango1.0-0 \
libcairo2 \
zlib1g-dev \
vim \
mysql-server \
default-libmysqlclient-dev \
software-properties-common \
default-jdk \
default-jre \
maven \
python3-dev \
python3-pip \
python3-virtualenv \
libsasl2-dev \
libldap2-dev \
libssl-dev \
curl
# Install node
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
apt-get install -y nodejs npm && \
npm install avrodoc -g
# Install VEP Perl dependencies
RUN cpanm DBI
# Install VEP. Using version 92 as per Gel2MDT Readme. AUTO prevents prompts and -n prevents attempts to update
# which otherwise cause an unattended install to fail.
WORKDIR /root
RUN git clone https://github.com/Ensembl/ensembl-vep.git
WORKDIR /root/ensembl-vep
RUN perl INSTALL.pl --VERSION 92 --AUTO a -n
# Install GelReportModels
RUN mkdir /gel
RUN mkdir /gel/GelReportModels
WORKDIR /gel
ADD GelReportModels /gel/GelReportModels
ADD GelReportModels/m2_settings.xml /gel
RUN mkdir -p ~/.m2 && cp m2_settings.xml ~/.m2/settings.xml
WORKDIR /gel/GelReportModels
RUN pip install --upgrade pip==18.0
ENV GEL_REPORT_MODELS_PYTHON_VERSION 3
RUN pip3 install .
# Install Gel2MDT
RUN mkdir /root/gel2mdt
COPY . /root/gel2mdt
WORKDIR /root/gel2mdt
# This is already installed with Anaconda and fails to 'downgrade'. Remove from requirements file?
RUN sed -i 's/certifi==/# certifi==/g' requirements.txt
RUN pip install -r requirements.txt
RUN pip install gunicorn
RUN pip install mysqlclient
RUN pip install flower
# RUN pip install pip install Werkzeug