-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile.ubuntu-trusty
33 lines (25 loc) · 1.24 KB
/
Dockerfile.ubuntu-trusty
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
FROM ubuntu:trusty as builder
RUN apt-get update
RUN apt-get install -y --no-install-recommends autoconf make gcc \
automake autotools-dev \
ocaml-nox camlidl coccinelle libocamlnet-ocaml-dev \
libocamlnet-ssl-ocaml libocamlnet-ssl-ocaml-dev \
libocamlnet-ocaml-bin libconfig-file-ocaml-dev camlp4 \
libssl-dev libgnutls-dev ca-certificates pkg-config \
ocaml-findlib wget
FROM builder
COPY . /build
WORKDIR /build
# install findlib
RUN wget http://download.camlcity.org/download/findlib-1.5.6.tar.gz -O /tmp/findlib-1.5.6.tar.gz
RUN cd /tmp && tar xzf findlib-1.5.6.tar.gz && cd findlib-1.5.6 && \
./configure -config /etc/ocamlfind.conf -bindir /usr/bin/ \
-sitelib /usr/lib/ocaml -with-toolbox && \
make all && make opt && sudo make install
# install ocaml-ssl
RUN wget https://github.com/savonet/ocaml-ssl/releases/download/0.5.5/ocaml-ssl-0.5.5.tar.gz -O /tmp/ocaml-ssl-0.5.5.tar.gz
RUN cd /tmp && tar xzf /tmp/ocaml-ssl-0.5.5.tar.gz && cd ocaml-ssl-0.5.5 && ./configure && make && sudo make install
RUN cd /build
RUN ./autogen.sh
RUN ./configure --with-idlgen --with-rpcgen --with-libnames=foo
RUN make