Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
docker: remove useless packages from tuto-mc
[simgrid.git] / tools / docker / Dockerfile.tuto-mc
index c53640c..888c7dd 100644 (file)
@@ -2,7 +2,7 @@
 FROM debian:testing
 
 # - Install SimGrid's dependencies 
-# - Compile and install SimGrid itself. Clean the tree.
+# - Compile and install SimGrid itself.
 # - Remove everything that was installed, and re-install what's needed by the SimGrid libraries before the Gran Final Cleanup
 # - Keep g++ gcc gfortran as any MC user will use (some of) them
 RUN apt update && apt -y upgrade && \
@@ -10,12 +10,12 @@ RUN apt update && apt -y upgrade && \
     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_model-checking=ON -Denable_documentation=OFF -Denable_java=OFF -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
-    make -j4 install
+    make -j4 install \
+    mkdir debian/ && touch debian/control && dpkg-shlibdeps --ignore-missing-info lib/*.so -llib/ -O/tmp/deps && \
+    apt remove -y git valgrind libboost-dev libboost-all-dev cmake dpkg-dev libunwind-dev libdw-dev libelf-dev libevent-dev && \
+    apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && rm /tmp/deps && \
+    apt autoremove -y && apt autoclean && apt clean
     
 # The build and dependencies are not cleaned in this image since it's it's highly experimental so far    
 #    git reset --hard master && git clean -dfx && \
-#    mkdir debian/ && touch debian/control && dpkg-shlibdeps --ignore-missing-info lib/*.so -llib/ -O/tmp/deps && \
-#    apt remove -y  git valgrind libboost-dev libboost-all-dev cmake dpkg-dev libunwind-dev libdw-dev libelf-dev libevent-dev && \
-#    apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && rm /tmp/deps && \
-#    apt autoremove -y && apt autoclean && apt clean