forked from aces/cbrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (42 loc) · 1.19 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 centos:6
RUN yum update -y && yum install -y \
gpg \
libyaml-devel \
glibc-headers \
autoconf \
gcc-c++ \
glibc-devel \
readline-devel \
zlib-devel \
libffi-devel \
openssl-devel \
automake \
libtool \
bison \
sqlite-devel \
git \
patch \
libxml2 \
libxml2-devel \
mysql-devel \
libmysqlclient-dev
RUN useradd cbrain
COPY . /home/cbrain/cbrain
RUN chown cbrain:cbrain -R /home/cbrain/cbrain
USER cbrain
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
RUN cd $HOME && \
\curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm; rvm install 2.2.0; rvm --default 2.2.0"
ENV PATH $PATH:/home/cbrain/.rvm/rubies/ruby-2.2.0/bin
RUN gem install bundler
RUN cd $HOME/cbrain/BrainPortal && \
bundle install && \
cd `bundle show sys-proctable` && \
rake install
RUN cd $HOME/cbrain/BrainPortal && \
rake cbrain:plugins:install:all
RUN cd $HOME/cbrain/Bourreau && \
bundle install
RUN cd $HOME/cbrain/BrainPortal && \
rake cbrain:plugins:install:plugins