Commit 75b7205a authored by Andre Maroneze's avatar Andre Maroneze

[Dev] add Docker file for 20.0 Calcium image

parent 73bd8f1f
FROM debian:sid as base
RUN apt update
RUN apt install opam -y
RUN opam init --disable-sandboxing --compiler=ocaml-base-compiler.4.05.0 -y
# "RUN eval $(opam env)" does not work, so we manually set its variables
ENV OPAM_SWITCH_PREFIX "/root/.opam/ocaml-base-compiler.4.05.0"
ENV CAML_LD_LIBRARY_PATH "/root/.opam/ocaml-base-compiler.4.05.0/lib/stublibs:/root/.opam/ocaml-base-compiler.4.05.0/lib/ocaml/stublibs:/root/.opam/ocaml-base-compiler.4.05.0/lib/ocaml"
ENV OCAML_TOPLEVEL_PATH "/root/.opam/ocaml-base-compiler.4.05.0/lib/toplevel"
ENV MANPATH "$MANPATH:/root/.opam/ocaml-base-compiler.4.05.0/man"
ENV PATH "/root/.opam/ocaml-base-compiler.4.05.0/bin:$PATH"
RUN opam update -y
RUN opam install depext -y
# Install packages from reference configuration
RUN opam depext --install -y \
alt-ergo.2.0.0 \
apron.20160125 \
conf-graphviz.0.1 \
mlgmpidl.1.2.11 \
ocamlfind.1.8.0 \
ocamlgraph.1.8.8 \
ppx_deriving_yojson.3.5.2 \
why3.1.2.0 \
yojson.1.7.0 \
zarith.1.9.1 \
--verbose # intentionally left as last line in this RUN command
RUN why3 config --detect-provers
# with_source: keep Frama-C sources
ARG with_source=no
RUN cd /root && \
wget http://frama-c.com/download/frama-c-20.0-Calcium.tar.gz && \
tar xvf frama-c-*.tar.gz && \
(cd frama-c-* && \
./configure --disable-gui && \
make -j && \
make install \
) && \
rm -f frama-c-*.tar.gz && \
[ "${with_source}" != "no" ] || rm -rf frama-c-*
# with_test: run Frama-C tests; requires "with_source=yes"
ARG with_test=no
RUN if [ "${with_test}" != "no" ]; then \
opam depext --install -y \
conf-python-3.1.0.0 \
conf-time.1 \
--verbose \
&& \
apt install python -y && \
cd /root/frama-c-* && \
make tests; \
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment