X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a622f231d43c8b1275cf3cf7d3e6c3092bd1f86f..b3f0136f52caa79bcba191716085f9c73f1ab125:/tools/docker/Dockerfile.unstable diff --git a/tools/docker/Dockerfile.unstable b/tools/docker/Dockerfile.unstable index 0fdeea8bfa..4d3f75fd57 100644 --- a/tools/docker/Dockerfile.unstable +++ b/tools/docker/Dockerfile.unstable @@ -1,15 +1,17 @@ # Base image FROM debian:testing -# - Install SimGrid's dependencies -# - Compile and install SimGrid itself -RUN apt update && \ - apt install -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev libboost-coroutine1.62.0 cmake && \ - mkdir /src/ && cd /src && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \ +# - Install SimGrid's dependencies +# - Compile and install SimGrid itself. Clean the tree. +# - Remove everything that was installed, and re-install what's needed by the SimGrid libraries before the Gran Final Cleanup +RUN apt-get --allow-releaseinfo-change update && apt -y upgrade && \ + apt install -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \ + mkdir /source/ && 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_java=ON -Denable_smpi=ON -Denable_compile_optimizations=ON . && \ - make -j4 install && make clean && \ - apt remove -y default-jdk gfortran libboost-dev libboost-all-dev cmake && \ + make -j4 install && \ + mkdir debian/ && touch debian/control && dpkg-shlibdeps --ignore-missing-info lib/*.so -llib/ -O/tmp/deps && \ + git reset --hard master && git clean -dfx && \ + apt remove -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \ + apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && \ apt autoremove -y && apt autoclean && apt clean - - \ No newline at end of file