# - 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
# - 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
# - 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