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
36 # jupyterlab dependencies
41 && rm -rf /var/lib/apt/lists/*
44 RUN pip install --no-cache-dir --no-dependencies \
54 # R package not available at debian's cran
55 RUN R -e "install.packages('remotes', dependencies=TRUE, repos='http://cran.rstudio.com/')" && \
56 R -e "require(remotes); install_version('Ckmeans.1d.dp','4.3.3', dependencies=TRUE, repos='http://cran.rstudio.com/')"
58 # python jupyterlab packages
59 RUN pip install --no-cache-dir --upgrade pip && \
60 pip install --no-cache-dir \
66 RUN mkdir -p /source && cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
68 cmake -DCMAKE_INSTALL_PREFIX=/usr/ -Denable_documentation=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
71 # platform-calibration
72 RUN cd /source && git clone --depth=1 https://framagit.org/simgrid/platform-calibration.git && \
73 cd platform-calibration && \
74 git checkout 899f044658246fb86f24e4efc96489df546ad3d3 && \
75 cd src/calibration && \
76 sed -i -e 's/#define NB_RUNS .*/#define NB_RUNS 1/g' calibrate.c && \
79 # get old calibration data for dahu cluster
80 RUN curl -s -L -o /source/simgrid.git/docs/source/tuto_network_calibration/grenoble_2018-08-29_1808878.zip \
81 https://github.com/Ezibenroc/calibration_analysis/raw/4837a5d841380ab3dfdbfbc919eab485c08890e9/dahu/mpi/grenoble_2018-08-29_1808878.zip
83 # tuto_network_calibration compilation
84 RUN cd /source/simgrid.git/docs/source/tuto_network_calibration && \
88 # prepare files for execution
89 RUN cd /source/simgrid.git/docs/source/tuto_network_calibration && \
90 cp grenoble_2018-08-29_1808878.zip /tmp/ && \
91 cd /tmp/ && unzip grenoble_2018-08-29_1808878.zip && \
94 WORKDIR /source/simgrid.git/docs/source/tuto_network_calibration/
95 ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root"]