Logo AND Algorithmique Numérique Distribuée

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