-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
64 lines (49 loc) · 1.85 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
FROM kbase/sdkbase2:python
MAINTAINER KBase Developer
# -----------------------------------------
# In this section, you can install any system dependencies required
# to run your App. For instance, you could place an apt-get update or
# install line here, a git checkout to download code, or run any other
# installation scripts.
# update security libraries in the base image
RUN apt-get -y update \
&& apt-get install -y pigz python-dev libffi-dev libssl-dev ca-certificates gcc wget
RUN pip install --upgrade pip
RUN pip install cffi ndg-httpsclient pyopenssl==17.03 cryptography==2.0.3 --upgrade \
&& pip install pyasn1 --upgrade \
&& pip install requests --upgrade \
&& pip install 'requests[security]' --upgrade \
&& pip install coverage \
&& pip install psutil \
&& pip install pyyaml \
&& pip install yattag \
&& pip install numpy \
&& pip install matplotlib \
&& pip install pandas
# -----------------------------------------
WORKDIR /kb/module
COPY ./ /kb/module
ARG CONFIG_FILE=/kb/module/pipeline.cfg
# install BBTools
RUN BBMAP_VERSION=$(grep BBTools $CONFIG_FILE | sed -r 's/(\S+)\s*=\s*(\S+)/\2/') \
&& BBMAP=BBMap_$BBMAP_VERSION.tar.gz \
&& wget -O $BBMAP https://sourceforge.net/projects/bbmap/files/$BBMAP/download \
&& tar -xf $BBMAP \
&& rm $BBMAP
# build BBTools small C-lib
RUN cd /kb/module/bbmap/jni \
&& make -f makefile.linux
# install SPAdes
RUN SPADES_VER=$(grep SPAdes $CONFIG_FILE | sed -r 's/(\S+)\s*=\s*(\S+)/\2/') \
&& cd /opt \
&& SPADES=SPAdes-$SPADES_VER-Linux.tar.gz \
&& wget http://cab.spbu.ru/files/release$SPADES_VER/$SPADES \
&& tar -xvzf $SPADES \
&& rm $SPADES
# -----------------------------------------
# Install the module code.
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]