forked from sony/v8eval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (42 loc) · 1.4 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
FROM golang:1.5.1
# install pyenv
RUN git clone git://github.com/yyuu/pyenv.git /.pyenv
ENV PYENV_ROOT /.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
# install essentials to build python and ruby
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y bzip2 libbz2-dev
RUN apt-get install -y openssl libssl-dev
RUN apt-get install -y sqlite3 libsqlite3-dev
RUN apt-get install -y libreadline6 libreadline6-dev
# install python
ENV PYVER 2.7.10
RUN pyenv install $PYVER
RUN pyenv global $PYVER
# install rbenv and ruby-build
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build
ENV RBENV_ROOT /usr/local/rbenv
ENV PATH $RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH
# install ruby
ENV RBVER 2.2.3
RUN rbenv install $RBVER
RUN rbenv global $RBVER
# install cmake
RUN apt-get install -y cmake
# install swig
RUN apt-get install -y autoconf automake libtool
RUN apt-get install -y libpcre3-dev
RUN apt-get install -y bison
RUN apt-get install -y g++
RUN apt-get install -y yodl
RUN git clone https://github.com/swig/swig.git /.swig
RUN cd /.swig && ./autogen.sh && ./configure && make && make install
# test v8eval
ADD . $GOPATH/src/github.com/sony/v8eval
WORKDIR $GOPATH/src/github.com/sony/v8eval
RUN ./build.sh test
RUN go/build.sh test
RUN python/build.sh test
RUN ruby/build.sh test