Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A few spelling mistakes and many replacements: [Ss]imgrid -> SimGrid.
[simgrid.git] / docs / source / tuto_disk / Dockerfile
1 FROM debian:10.10-slim
2
3 RUN printf '%s\n' \
4     "deb    [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20210707T150931Z/ buster main contrib non-free" \
5     "deb-src [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20210707T150931Z/ buster main contrib non-free" \
6     "deb     [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian-security/20210707T150931Z/ buster/updates main contrib non-free" \
7     "deb-src [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian-security/20210707T150931Z/ buster/updates main contrib non-free" > /etc/apt/sources.list \
8 && \
9     apt-get -o Acquire::Check-Valid-Until=false update \
10 && \
11     apt-get install -y --no-install-recommends \
12 # emacs
13     emacs \
14     ess \
15     elpa-htmlize \
16 # R
17     r-base-core \
18     r-cran-ggplot2 \
19     r-cran-dplyr \
20     r-cran-plyr \
21     r-cran-jsonlite \
22     r-cran-gridextra \
23 # SimGrid dependencies
24     g++ \
25     gcc \
26     git \
27     valgrind \
28     gfortran \
29     libboost-dev \
30     libboost-all-dev \
31     libeigen3-dev \
32     cmake \
33     dpkg-dev \
34 # misc tools
35     curl \
36 && \
37     apt-get clean \
38     && rm -rf /var/lib/apt/lists/*
39
40 # install ox-rst to convert org to rst
41 RUN mkdir /source && cd /source && \
42     git clone https://github.com/msnoigrs/ox-rst.git ox-rst.git
43
44 # compile install SimGrid
45 RUN cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
46     cd simgrid.git && \
47     cmake -DCMAKE_INSTALL_PREFIX=/usr/ -Denable_documentation=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
48     make -j4 install
49
50 ## compile
51 RUN cd /source/simgrid.git/docs/source/tuto_disk && \
52     cmake . &&\
53     make
54
55 # Generate HTML
56 RUN cd /source/simgrid.git/docs/source/tuto_disk && \
57      emacs -l init.el -batch \
58         --eval "(require 'package)" \
59         --eval "(package-initialize)" \
60         --eval "(setq enable-local-eval t)" \
61         --eval "(setq enable-local-variables t)" \
62         --eval "(setq ess-ask-for-ess-directory nil)" \
63         --eval "(setq org-babel-execute-src-block t)" \
64         --eval "(setq org-export-babel-evaluate t)" \
65         analysis.org --funcall org-rst-export-to-rst
66
67 WORKDIR /source/simgrid.git/
68 ENTRYPOINT [ "/bin/bash"]