-
Notifications
You must be signed in to change notification settings - Fork 124
/
Dockerfile.ubuntu-with-tests
executable file
·65 lines (56 loc) · 1.68 KB
/
Dockerfile.ubuntu-with-tests
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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
autoconf \
build-essential \
bzip2 \
cmake \
cython \
git \
libbz2-dev \
libncurses5-dev \
openjdk-8-jdk \
pkg-config \
python \
python2.7 \
python2.7-dev \
python-setuptools \
python-pip \
python-psutil \
python-numpy \
python-pandas \
python-distribute \
python-pysam \
python-scipy \
software-properties-common \
wget \
zlib1g-dev && \
apt-get clean -y
RUN pip install bx-python
# copy git repository into the image
RUN mkdir -p /opt/hap.py-source
COPY . /opt/hap.py-source/
# make minimal HG19 reference sequence
RUN mkdir -p /opt/hap.py-data
# get + install ant
WORKDIR /opt
RUN wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.7-bin.tar.gz && \
tar xzf apache-ant-1.9.7-bin.tar.gz && \
rm apache-ant-1.9.7-bin.tar.gz
ENV PATH $PATH:/opt/apache-ant-1.9.7/bin
# run hap.py installer in the image, don't run tests since we don't have a reference file
WORKDIR /opt/hap.py-source
RUN python install.py /opt/hap.py --with-rtgtools --no-tests
# download HG19 reference data
# This downloads from UCSC
WORKDIR /opt/hap.py-data
ENV PATH $PATH:/opt/hap.py/bin
RUN /opt/hap.py-source/src/sh/make_hg19.sh && samtools faidx /opt/hap.py-data/hg19.fa
# Run tests
ENV HG19 /opt/hap.py-data/hg19.fa
WORKDIR /opt/hap.py
RUN /opt/hap.py-source/src/sh/run_tests.sh
# remove source folder
WORKDIR /
RUN rm -rf /opt/hap.py-source