File: Dockerfile.mc-slim

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 (26 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download
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
# Rebuild with this image with the following commande:
#    docker build -f Dockerfile.mc-slim -t simgrid/mc-slim .
# Launch it as follows:
#    docker run -it simgrid/mc-slim sh

# Base image
FROM debian:testing-slim

# - Only install the model-checker and the clang pass, remove everything if possible
RUN set -x && apt-get --allow-releaseinfo-change update && \
    apt install -y cmake g++ clang git libboost-dev && apt clean && apt autoclean && \
    mkdir /source/ && git clone --depth=1 https://framagit.org/simgrid/simgrid.git /source/simgrid.git && \
    cd /source/simgrid.git && \
    cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/usr/ -Dminimal-bindings=ON -Denable_documentation=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
    make -j4 install && \
    echo "XX SimGrid installed" && \
    git clone --depth=1 https://gitlab.inria.fr/simgrid/llvm-instru.git /source/llvm-instru.git && \
    cd /source/llvm-instru.git && cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/usr/ . && make install && \
    cp /usr/lib/sharedmemmm.so /usr/lib/x86_64-linux-gnu/ && \
    echo "XX Instru installed" && \
    cd / && rm -rf source &&  \
    apt remove -y cmake cmake-data git gdb llvm-19-dev krb5-locales fakeroot openssh-client manpages mount && apt autoremove -y && apt autoclean && apt clean && \
    dpkg --purge $(dpkg --list | grep '^rc'|cut -f3 -d' ') && \
    rm -rf /usr/share/doc /usr/share/man /var/cache/apt/* /var/cache/debconf/*-old /var/lib/apt/* /var/log* /usr/local

CMD ["/bin/bash"]