added lazar dockerfile
authorgebele <gebele@in-silico.ch>
Mon, 15 Jan 2018 14:20:38 +0000 (15:20 +0100)
committergebele <gebele@in-silico.ch>
Mon, 15 Jan 2018 14:20:38 +0000 (15:20 +0100)
lazar/Dockerfile [new file with mode: 0644]
lazar/start.sh [new file with mode: 0644]

diff --git a/lazar/Dockerfile b/lazar/Dockerfile
new file mode 100644 (file)
index 0000000..5488df6
--- /dev/null
@@ -0,0 +1,59 @@
+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 \
+            jre7-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 https://cran.r-project.org/src/contrib/Rserve_1.7-3.tar.gz -O Rserve
+RUN         sudo R CMD INSTALL Rserve
+
+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://github.com/opentox/lazar.git && \
+            cd lazar && \
+            git checkout "development" && \
+            ruby ext/lazar/extconf.rb && \
+            bundle install --path ~/.gem
+
+#RUN         git clone https://github.com/opentox/toxtree.git && \
+#            cd toxtree && \
+#            bundle install --path ~/.gem
+
+#RUN         git clone https://github.com/opentox/kazius-alerts.git && \
+#            cd kazius-alerts && \
+#            bundle install --path ~/.gem
+
+#RUN         git clone https://github.com/opentox/lazar-gui.git && \
+#            cd lazar-gui && \
+#            git checkout "development" && \
+#            bundle install --path ~/.gem
+
+#COPY        start.sh /home/ist/start.sh
+#RUN         sudo chmod +x /home/ist/start.sh
+ENTRYPOINT  ["/home/ist/start.sh"]
diff --git a/lazar/start.sh b/lazar/start.sh
new file mode 100644 (file)
index 0000000..f3f5e96
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+sudo /user/bin/mongod &
+#cd $HOME/lazar-gui &&
+#unicorn -p 8088 -E production
+
+ruby $HOME/lazar/test/all.rb