annotate Dockerfile.xseeker @ 0:15c9fbefeaf1 draft

" master branch Updating"
author lain
date Tue, 01 Feb 2022 14:19:30 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
1 # call parent container
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
2 #FROM r4.0.0
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
3 FROM debian:testing
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
4
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
5 # set author
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
6 MAINTAINER Lain Pavot <lain.pavot@inra.fr>
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
7
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
8 # set encoding
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
9 ENV LANG en_US.UTF-8
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
10
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
11 ## we copy the installer and run it before copying the entier project to prevent
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
12 ## reinstalling everything each time the project has changed
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
13
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
14 COPY ./XSeeker/install.R /tmp/
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
15
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
16 RUN mkdir -p /XSeeker/input/ /var/log/
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
17 VOLUME ["/XSeeker/input/"]
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
18
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
19 EXPOSE 8765
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
20 ENV LC_ALL en_US.UTF-8
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
21 ENV LANG en_US.UTF-8
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
22 ENV R_BASE_VERSION 4.0.3
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
23
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
24 RUN \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
25 apt-get update \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
26 && apt-get install -y --no-install-recommends \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
27 ed \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
28 less \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
29 locales \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
30 vim-tiny \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
31 wget \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
32 ca-certificates \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
33 fonts-texgyre \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
34 && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
35 && locale-gen en_US.utf8 \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
36 && /usr/sbin/update-locale LANG=en_US.UTF-8 \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
37 && echo "deb http://http.debian.net/debian sid main" > \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
38 /etc/apt/sources.list.d/debian-unstable.list \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
39 && echo 'APT::Default-Release "testing";' > \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
40 /etc/apt/apt.conf.d/default \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
41 && echo 'APT::Install-Recommends "false";' > \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
42 /etc/apt/apt.conf.d/90local-no-recommends \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
43 && chmod o+r /etc/resolv.conf \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
44 && apt-get update \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
45 && apt-get install -y --no-install-recommends \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
46 file \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
47 gcc-9-base \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
48 libopenblas0-pthread \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
49 littler \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
50 libcurl4-openssl-dev \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
51 libxml2-dev \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
52 libssl-dev \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
53 libpwiz-dev \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
54 libpwiz3 \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
55 r-cran-littler \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
56 r-base \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
57 r-base-dev \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
58 r-recommended \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
59 r-cran-rlang \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
60 r-cran-dt \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
61 r-cran-magrittr \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
62 r-cran-ncdf4 \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
63 r-cran-devtools \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
64 r-cran-plotly \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
65 r-cran-httpuv \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
66 r-cran-xtable \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
67 r-cran-sourcetools \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
68 r-cran-fastmap \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
69 r-cran-rcurl \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
70 r-cran-proxy \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
71 r-cran-htmlwidgets \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
72 r-cran-rsqlite \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
73 r-cran-openxlsx \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
74 r-cran-stringr \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
75 r-cran-dplyr \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
76 r-cran-purrr \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
77 r-cran-blob \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
78 r-cran-dbscan \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
79 r-cran-biocmanager \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
80 r-bioc-biocgenerics \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
81 r-bioc-biobase \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
82 r-bioc-protgenerics \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
83 r-bioc-zlibbioc \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
84 && Rscript /tmp/install.R \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
85 && apt-get clean autoclean \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
86 && apt-get autoremove --yes \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
87 && rm -rf /var/lib/{apt,dpkg,cache,log}/ \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
88 && rm -rf /tmp/* ;
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
89
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
90 COPY ./XSeeker /XSeeker
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
91 COPY ./XSeekerBaseModule /tmp/XSeekerBaseModule
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
92
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
93 COPY ./resources/XSeekerBaseModule/ /tmp/XSeekerBaseModule/
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
94 COPY ./resources/XSeeker/config/ /XSeeker/config/
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
95
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
96 RUN \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
97 cd /tmp/XSeekerBaseModule \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
98 && ./configure \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
99 && make install \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
100 && cd /XSeeker \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
101 && ./configure \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
102 && make all_modules install \
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
103 && rm -rf /tmp/XSeekerBaseModule/ ;
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
104
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
105
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
106 RUN chmod +x /XSeeker/run.sh
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
107
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
108 COPY ./resources/entrypoint.sh /
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
109 RUN chmod +x /entrypoint.sh
15c9fbefeaf1 " master branch Updating"
lain
parents:
diff changeset
110 CMD /entrypoint.sh