Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Build the S4U tuto on top of the stable image again
[simgrid.git] / tools / docker / Dockerfile.tuto-s4u
index c4cb4b3..0c853db 100644 (file)
@@ -3,24 +3,14 @@ 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
-
 # - Clone simgrid-template-s4u, as it is needed by the tutorial
 # - Add an empty makefile advising to run cmake before make, just in case
-RUN apt install -y python-is-python3 pajeng r-base r-cran-tidyverse r-cran-devtools cmake g++ git libboost-dev flex bison libfmt-dev&& \
+RUN apt install -y python-is-python3 pajeng r-base r-cran-tidyverse r-cran-devtools cmake g++ git libboost-dev flex bison libfmt-dev && \
     cd /source && \
     git clone --depth=1 https://framagit.org/simgrid/simgrid-template-s4u.git simgrid-template-s4u.git && \
-    printf "master-workers ping-pong:\n\t@echo \"Please run the following command before make:\";echo \"    cmake .\"; exit 1" > Makefile &&\
-    chown -R user:user /source && \
-    apt autoremove -y && apt clean && apt autoclean && \
-    chown -R user:user /source
+    printf "master-workers ping-pong:\n\t@echo \"Please run the following command before make:\";echo \"    cmake .\"; exit 1" > Makefile && \
+    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"]