-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
52 lines (40 loc) · 2.59 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
FROM ubuntu:20.04
MAINTAINER Kristian Peters ([email protected])
# Add cran R backport
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get -y install ca-certificates apt-transport-https perl locales gnupg2
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/" >> /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# Generate locales
ENV LC_ALL="en_US.UTF-8"
ENV LC_CTYPE="en_US.UTF-8"
RUN locale-gen $LC_ALL
RUN dpkg-reconfigure locales
# Install packages
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get -y --allow-unauthenticated install apt-transport-https make gcc gfortran g++ libblas-dev liblapack-dev libxml++2.6-dev libexpat1-dev libxml2-dev libnetcdf-dev libssl-dev pkg-config wget curl git unzip zip python3 python3-pip r-base r-base-dev pandoc pandoc-data openjdk-11-jdk pkg-config parallel wget curl git unzip zip python3 openbabel maven
# Install R packages
RUN R -e 'install.packages(c("devtools","readxl","webchem","jsonlite","rcdk","circlize","plotrix","squash"))'
# Install Bioconductor
RUN R CMD javareconf
RUN R -e 'if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager"); BiocManager::install(ask = FALSE, update = TRUE); BiocManager::install(c("multtest","MSnbase","mzR","MassSpecWavelet","S4Vectors","BiocStyle","faahKO","msdata","xcms","CAMERA"), ask = FALSE, update = TRUE)'
RUN R -e 'library(devtools); devtools::install_github("https://github.com/MassBank/RMassBank", ref="c579455cff45d1971c029a9af9189a9e65429e16")'
#RUN R -e 'library(devtools); devtools::install_github("https://github.com/MassBank/RMassBank", ref="treutler-merge")'
#RUN R -e 'library(devtools); devtools::install_github("https://github.com/MassBank/RMassBank")'
RUN R -e 'library(devtools); install_github(repo = "CDK-R/rinchi@master")'
# Install old version of webchem
RUN R -e 'devtools::install_github("ropensci/webchem")'
# Install RMassBank
WORKDIR /usr/src
RUN git clone https://github.com/MassBank/RMassBank ; cd RMassBank ; git checkout c579455cff45d1971c029a9af9189a9e65429e16
#RUN git clone https://github.com/MassBank/RMassBank
# Install MassBank
#WORKDIR /usr/src
#RUN git clone https://github.com/MassBank/MassBank-web
#WORKDIR /usr/src/MassBank-web/MassBank-Project/
#RUN mvn package
# Cleanup
RUN apt-get -y --purge --auto-remove remove make gcc gfortran g++
RUN apt-get -y clean && apt-get -y autoremove && rm -rf /var/lib/{cache,log}/ /tmp/* /var/tmp/*
# Add scripts folder to container
ADD galaxy/* /usr/local/bin/
RUN chmod +x /usr/local/bin/*