-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_commet_galaxy.txt
57 lines (40 loc) · 1.75 KB
/
Dockerfile_commet_galaxy.txt
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
############################################################
# Dockerfile to build Commet tool container image for Galaxy
# Based on debian wheezy
############################################################
# Set the base image to debian wheezy
FROM debian:wheezy
# Set noninterative mode
ENV DEBIAN_FRONTEND noninteractive
ENV PACKAGES wget make gcc g++ unzip curl r-base python
ENV ZIP http://github.com/pierrepeterlongo/commet/archive/master.zip
ENV SOURCE commet-master
ENV DIR /opt
################## DEPENDENCIES INSTALLATION ######################
RUN apt-get update -y
RUN apt-get install -y ${PACKAGES}
#################### INSTALL GPLOTS FOR R #########################
RUN curl -O http://cran.ma.imperial.ac.uk/src/contrib/Archive/gplots/gplots_2.6.0.tar.gz
RUN tar xzf gplots_2.6.0.tar.gz
RUN echo 'options(repos=structure(c(CRAN="http://cran.ma.imperial.ac.uk")))' > /tmp/inst.sh
RUN echo 'install.packages("gtools")' >> /tmp/inst.sh
RUN echo 'install.packages("gdata")' >> /tmp/inst.sh
RUN echo 'install.packages("gplots", repos = NULL, type="source")' >> /tmp/inst.sh
RUN Rscript /tmp/inst.sh
################## COMMET INSTALLATION ######################
WORKDIR ${DIR}
ADD ${ZIP} tmp.zip
RUN unzip tmp.zip && rm tmp.zip
WORKDIR ${DIR}/${SOURCE}
RUN make && make install
ENV RSCRIPTS ${DIR}/${SOURCE}
ENV BINARIES ${DIR}/${SOURCE}/bin/
#ENTRYPOINT ["./commet.py"]
#CMD ["-h"]
ADD commet.py /usr/local/bin/commet.py
RUN chmod 755 /usr/local/bin/commet.py
##################### Maintainer #####################
MAINTAINER Le Bras Yvan <le_bras.yvan@irisa.fr>
#################### Example ########################
# docker run -it --rm cmonjeau/commet
# docker run -it --rm -v /root/Commet:/data cmonjeau/commet /data/sets_config.txt -k 33 -o /data/results