Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sthread is not a binary [anymore] but a library
[simgrid.git] / tools / docker / Dockerfile.tuto-smpi
index 2e4f63c..85cddcb 100644 (file)
@@ -1,23 +1,16 @@
-# Base image 
+# Base image
 FROM simgrid/stable
 
-RUN apt update && apt -y upgrade 
-
-RUN apt install -y sudo && \
-    groupadd -g 999 user && \
-    useradd -r -u 999 -g user user && \
-    echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
-    chmod 0440 /etc/sudoers.d/user && \
-    mkdir -p /home/user && \
-    chown -R user:user /home/user
+# https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands
+ADD "http://deb.debian.org/debian/dists/testing/Release" skipcache
+RUN apt update && apt -y upgrade
 
 # - Clone simgrid-template-smpi, as it is needed by the tutorial
-RUN apt install -y python3 pajeng libssl-dev r-base r-cran-ggplot2 r-cran-dplyr r-cran-devtools build-essential g++ gfortran git libboost-all-dev cmake flex bison && \
+RUN apt install -y python3 pajeng libssl-dev r-base r-cran-devtools r-cran-tidyverse build-essential g++ gfortran git libboost-dev libeigen3-dev cmake flex bison libfmt-dev && \
     cd /source && \
     git clone --depth=1 https://framagit.org/simgrid/simgrid-template-smpi.git simgrid-template-smpi.git && \
-    chown -R user:user /source && \
     apt autoremove -y && apt clean && apt autoclean
-    
+
 RUN Rscript -e "library(devtools); install_github('schnorr/pajengr');"
 
-CMD ["su", "-", "user", "-c", "/bin/bash"]
+CMD ["/bin/bash"]