summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
blob: 9b0144d8c9e896a2edd1f29112e49fb3b941a916 (plain)
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
FROM        base/archlinux
MAINTAINER  in-silico toxicology GmbH

RUN         pacman-db-upgrade && pacman -Syyu --noconfirm && pacman -S --noconfirm \
            base-devel \
            boost-libs \
            cmake \
            eigen3 \
            fontconfig \
            gcc-fortran \
            git \
            gsl \
            jre10-openjdk-headless \
            mongodb \
            mongodb-tools \
            r \
            ruby \
            swig \
            vim \
            wget && pacman -Scc --noconfirm

RUN         useradd -ms /bin/bash ist
RUN         echo "ist ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

RUN         mkdir -p /data/db
USER        ist
WORKDIR     /home/ist

RUN         wget http://www.rforge.net/src/contrib/Rserve_1.8-6.tar.gz -O Rserve_1.8-6.tgz
RUN         sudo R CMD INSTALL Rserve_1.8-6.tgz

RUN         echo 'gem: --user-install --no-document' > ~/.gemrc
ENV         PATH $PATH:/home/ist/.gem/ruby/2.5.0/bin
RUN         export GEM_HOME=$(ruby -e 'print Gem.user_dir')
RUN         gem install bundler
RUN         bundle config --global silence_root_warning 1

RUN         git clone https://git.in-silico.ch/lazar && \
            cd lazar && \
	          git fetch && git fetch --tags && \
            git checkout "v10-nestec" && \
            ruby ext/lazar/extconf.rb && \
            bundle install --path ~/.gem

# get models training data from private git repo, bitbucket, lazar-nestec-data

RUN         git clone https://git.in-silico.ch/toxtree && \
            cd toxtree && \
            ruby ext/toxtree/extconf.rb

RUN         git clone https://git.in-silico.ch/kazius-alerts

RUN         git clone https://git.in-silico.ch/lazar-gui && \
            cd lazar-gui && \
	          git fetch && git fetch --tags && \
            git checkout nestle-new-consensus-mutagenicity-dg3 && \
            bundle install --path ~/.gem

COPY        start.sh /home/ist/start.sh
RUN         sudo chmod +x /home/ist/start.sh
EXPOSE      8088
ENTRYPOINT  ["/home/ist/start.sh"]