-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
60 lines (51 loc) · 1.32 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
FROM golang:1.15
# install pyenv
RUN git clone -b v1.2.21 https://github.com/pyenv/pyenv.git /.pyenv
ENV PYENV_ROOT /.pyenv
ENV PATH ${PYENV_ROOT}/bin:${PATH}
# install essentials to build python
RUN apt-get update
RUN apt-get install -y \
build-essential \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
openssl \
python-dev \
zlib1g-dev
# install python
ENV PYVER 2.7.18
RUN pyenv install ${PYVER}
RUN pyenv global ${PYVER}
# install rbenv
RUN git clone -b v1.1.2 https://github.com/rbenv/rbenv.git /.rbenv
ENV RBENV_ROOT /.rbenv
ENV PATH ${RBENV_ROOT}/bin:${RBENV_ROOT}/shims:${PATH}
# install ruby-build
RUN mkdir -p "$(rbenv root)"/plugins
RUN git clone -b v20201225 https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
# install ruby
ENV RBVER 2.6.6
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 \
bison \
g++ \
libpcre3-dev \
libtool \
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