-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (50 loc) · 2.01 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
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM centos:6
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
MAINTAINER maekawa<[email protected]>
RUN echo "install ruby environment"
RUN yum install -y git vim sudo tar wget
RUN yum install -y epel-release
RUN yum install -y gcc-c++ git glibc-headers libffi-devel libxml3 libxml2-devel libxslt libxslt-devel libyaml-devel make nodejs npm openssl-devel readline readline-devel sqlite-devel zlib zlib-devel
## Ruby
RUN cd /usr/local/src && \
wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz && \
tar zxvf ruby-2.2.2.tar.gz && \
cd ruby-2.2.2 && \
./configure --disable-install-doc && \
make && \
make install
RUN echo 'gem: --no-document' > /usr/local/etc/gemrc
RUN yum install -y patch
RUN gem update --system
RUN yum -y install mysql-server mysql-devel
RUN git clone https://coffeemk2:[email protected]/coffeemk2/twicro.git
#RUN git clone -b feature_silbus https://okamuroshogo:[email protected]/planningdev/kyutechapp.git
WORKDIR /twicro/Twicro
RUN gem install bundler
RUN gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2/
RUN bundle config build.nokogiri --use-system-libraries
RUN wget http://mecab.googlecode.com/files/mecab-0.996.tar.gz
RUN tar zxfv mecab-0.996.tar.gz && \
cd mecab-0.996 && \
./configure && \
make && \
make check && \
make install && \
cd
RUN wget http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz
RUN tar zvxf mecab-ipadic-2.7.0-20070801.tar.gz && \
cd mecab-ipadic-2.7.0-20070801 && \
./configure --with-charset=utf8 && \
make && \
make install && \
cd
RUN rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
RUN yum install -y mecab mecab-devel mecab-ipadic git make curl xz
RUN git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git
RUN cd mecab-ipadic-neologd && \
./bin/install-mecab-ipadic-neologd -n -y
RUN bundle install --path vendor/bundle
RUN bundle config --global path 'vendor/bundle'
ENV RAILS_ENV production