4 "deb [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20211101T024700Z/ bullseye main contrib non-free" \
5 "deb-src [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20211101T024700Z/ bullseye main contrib non-free" \
6 "deb [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20211101T024700Z/ bullseye-updates main contrib non-free" \
7 "deb-src [check-valid-until=no, trusted=yes] http://snapshot.debian.org/archive/debian/20211101T024700Z/ bullseye-updates main contrib non-free" > /etc/apt/sources.list \
9 apt-get -o Acquire::Check-Valid-Until=false update \
11 apt-get install -y --no-install-recommends \
18 # simgrid dependencies
37 # jupyterlab dependencies
42 && rm -rf /var/lib/apt/lists/*
45 RUN pip install --no-cache-dir --no-dependencies \
55 # R package not available at debian's cran
56 RUN R -e "install.packages('remotes', dependencies=TRUE, repos='http://cran.rstudio.com/')" && \
57 R -e "require(remotes); install_version('Ckmeans.1d.dp','4.3.3', dependencies=TRUE, repos='http://cran.rstudio.com/')"
59 # python jupyterlab packages
60 RUN pip install --no-cache-dir --upgrade pip && \
61 pip install --no-cache-dir \
67 RUN mkdir -p /source && cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
69 cmake -DCMAKE_INSTALL_PREFIX=/usr/ -Denable_documentation=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
72 # platform-calibration
73 RUN cd /source && git clone --depth=1 https://framagit.org/simgrid/platform-calibration.git && \
74 cd platform-calibration && \
75 git checkout 899f044658246fb86f24e4efc96489df546ad3d3 && \
76 cd src/calibration && \
77 sed -i -e 's/#define NB_RUNS .*/#define NB_RUNS 1/g' calibrate.c && \
80 # get old calibration data for dahu cluster
81 RUN curl -s -L -o /source/simgrid.git/docs/source/tuto_network_calibration/grenoble_2018-08-29_1808878.zip \
82 https://github.com/Ezibenroc/calibration_analysis/raw/4837a5d841380ab3dfdbfbc919eab485c08890e9/dahu/mpi/grenoble_2018-08-29_1808878.zip
84 # tuto_network_calibration compilation
85 RUN cd /source/simgrid.git/docs/source/tuto_network_calibration && \
89 # prepare files for execution
90 RUN cd /source/simgrid.git/docs/source/tuto_network_calibration && \
91 cp grenoble_2018-08-29_1808878.zip /tmp/ && \
92 cd /tmp/ && unzip grenoble_2018-08-29_1808878.zip && \
95 WORKDIR /source/simgrid.git/docs/source/tuto_network_calibration/
96 ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root"]