Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / tools / docker / Dockerfile.unstable
1 # Base image 
2 FROM debian:testing
3
4 # - Install SimGrid's dependencies 
5 # - Compile and install SimGrid itself. Clean the tree.
6 # - Remove everything that was installed, and re-install what's needed by the SimGrid libraries before the Gran Final Cleanup
7 RUN apt update && apt -y upgrade && \
8     apt install -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \
9     mkdir /source/ && cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
10     cd simgrid.git && \
11     cmake -DCMAKE_INSTALL_PREFIX=/usr/ -Denable_documentation=OFF -Denable_java=ON -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
12     make -j4 install && \
13     mkdir debian/ && touch debian/control && dpkg-shlibdeps --ignore-missing-info lib/*.so -llib/ -O/tmp/deps && \
14     git reset --hard master && git clean -dfx && \
15     apt remove -y  g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \
16     apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && \
17     apt autoremove -y && apt autoclean && apt clean