File: Dockerfile

package info (click to toggle)
simgrid 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,192 kB
  • sloc: cpp: 124,913; ansic: 66,744; python: 8,560; java: 6,773; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,194; perl: 1,436; makefile: 111; lisp: 49; javascript: 7; sed: 6
file content (68 lines) | stat: -rw-r--r-- 2,287 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
FROM debian:10.10-slim

RUN printf '%s\n' \
    "deb    [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20210707T150931Z/ buster main contrib non-free" \
    "deb-src [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20210707T150931Z/ buster main contrib non-free" \
    "deb     [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian-security/20210707T150931Z/ buster/updates main contrib non-free" \
    "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 \
&& \
    apt-get -o Acquire::Check-Valid-Until=false update \
&& \
    apt-get install -y --no-install-recommends \
# emacs
    emacs \
    ess \
    elpa-htmlize \
# R
    r-base-core \
    r-cran-ggplot2 \
    r-cran-dplyr \
    r-cran-plyr \
    r-cran-jsonlite \
    r-cran-gridextra \
# SimGrid dependencies
    g++ \
    gcc \
    git \
    valgrind \
    gfortran \
    libboost-dev \
    libboost-all-dev \
    libeigen3-dev \
    cmake \
    dpkg-dev \
# misc tools
    curl \
&& \
    apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# install ox-rst to convert org to rst
RUN mkdir /source && cd /source && \
    git clone https://github.com/msnoigrs/ox-rst.git ox-rst.git

# compile install SimGrid
RUN cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
    cd simgrid.git && \
    cmake -DCMAKE_INSTALL_PREFIX=/usr/ -Denable_documentation=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
    make -j4 install

## compile
RUN cd /source/simgrid.git/docs/source/tuto_disk && \
    cmake . &&\
    make

# Generate HTML
RUN cd /source/simgrid.git/docs/source/tuto_disk && \
     emacs -l init.el -batch \
        --eval "(require 'package)" \
        --eval "(package-initialize)" \
        --eval "(setq enable-local-eval t)" \
        --eval "(setq enable-local-variables t)" \
        --eval "(setq ess-ask-for-ess-directory nil)" \
        --eval "(setq org-babel-execute-src-block t)" \
        --eval "(setq org-export-babel-evaluate t)" \
        analysis.org --funcall org-rst-export-to-rst

WORKDIR /source/simgrid.git/
ENTRYPOINT [ "/bin/bash"]