Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
docker: put our sources under /src
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Aug 2018 20:44:00 +0000 (22:44 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Aug 2018 20:44:00 +0000 (22:44 +0200)
tools/docker/Dockerfile.stable
tools/docker/Dockerfile.tuto-s4u
tools/docker/Dockerfile.unstable

index 9236ec0..300ab2d 100644 (file)
@@ -7,10 +7,12 @@ ARG DLURL
 # - Compile and install SimGrid itself
 RUN echo "DOWNLOAD_URL: ${DLURL}" && \
     apt update && apt install -y wget && \
-    wget https://framagit.org/${DLURL} && tar xf SimGrid-* && \
+    mkdir /src && cd /src && \
+    wget https://framagit.org/${DLURL} && \
+    tar xf SimGrid-* && rm SimGrid-*tar.gz && \
     cd SimGrid-* && \
     apt install -y gcc g++ default-jdk gfortran libboost-dev libboost-all-dev cmake valgrind libboost-coroutine1.62.0 && \
-    cmake -DCMAKE_INSTALL_PREFIX=/usr -Denable_documentation=OFF -Denable_java=ON -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
+    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  gcc g++ default-jdk gfortran libboost-dev libboost-all-dev cmake wget && \
     apt autoremove -y && apt autoclean && apt clean
index 8bc81e2..e25f1e6 100644 (file)
@@ -3,6 +3,7 @@ FROM simgrid/unstable
 
 # - Clone simgrid-template-s4u, as it is needed by the tutorial
 RUN apt install -y pajeng r-base r-cran-ggplot2 r-cran-dplyr cmake g++ && \
+    cd /src && \
     git clone --depth=1 https://framagit.org/simgrid/simgrid-template-s4u.git
 
     
\ No newline at end of file
index b6f09fd..0fdeea8 100644 (file)
@@ -5,9 +5,9 @@ FROM debian:testing
 # - 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 && \
-    git clone --depth=1 https://framagit.org/simgrid/simgrid.git && \
-    cd simgrid && \
-    cmake -DCMAKE_INSTALL_PREFIX=/usr -Denable_documentation=OFF -Denable_java=ON -Denable_smpi=ON -Denable_compile_optimizations=ON . && \
+    mkdir /src/ && cd /src && 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 && \
     apt autoremove -y && apt autoclean && apt clean