Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
docker: apt allow-releaseinfo-change + cosmetics
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 10 Jul 2019 08:21:34 +0000 (10:21 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 10 Jul 2019 14:44:48 +0000 (16:44 +0200)
tools/docker/Dockerfile.build-deps
tools/docker/Dockerfile.stable
tools/docker/Dockerfile.unstable
tools/docker/Makefile

index b453fd9..904e240 100644 (file)
@@ -2,7 +2,7 @@
 FROM debian:testing
 
 # - Install SimGrid's dependencies
 FROM debian:testing
 
 # - Install SimGrid's dependencies
-RUN apt update && \
+RUN apt-get --allow-releaseinfo-change update && \
     apt install -y \
        g++ gcc gfortran default-jdk pybind11-dev \
        git \
     apt install -y \
        g++ gcc gfortran default-jdk pybind11-dev \
        git \
index 1b8cd23..d8f332b 100644 (file)
@@ -6,7 +6,7 @@ ARG DLURL
 # - Install SimGrid's dependencies
 # - Compile and install SimGrid itself
 RUN echo "DOWNLOAD_URL: ${DLURL}" && \
 # - Install SimGrid's dependencies
 # - Compile and install SimGrid itself
 RUN echo "DOWNLOAD_URL: ${DLURL}" && \
-    apt update && apt upgrade -y && apt install -y wget && \
+    apt-get --allow-releaseinfo-change update && apt upgrade -y && apt install -y wget && \
     mkdir /source && cd /source && \
     wget https://framagit.org/${DLURL} && \
     tar xf SimGrid-* && rm SimGrid-*tar.gz && \
     mkdir /source && cd /source && \
     wget https://framagit.org/${DLURL} && \
     tar xf SimGrid-* && rm SimGrid-*tar.gz && \
@@ -19,5 +19,3 @@ RUN echo "DOWNLOAD_URL: ${DLURL}" && \
     apt remove -y  g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev wget && \
     apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && \
     apt autoremove -y && apt autoclean && apt clean
     apt remove -y  g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev wget && \
     apt install `sed -e 's/shlibs:Depends=//' -e 's/([^)]*)//g' -e 's/,//g' /tmp/deps` && \
     apt autoremove -y && apt autoclean && apt clean
-
-    
\ No newline at end of file
index 6d32dfc..4d3f75f 100644 (file)
@@ -4,7 +4,7 @@ FROM debian:testing
 # - Install SimGrid's dependencies 
 # - Compile and install SimGrid itself. Clean the tree.
 # - Remove everything that was installed, and re-install what's needed by the SimGrid libraries before the Gran Final Cleanup
 # - Install SimGrid's dependencies 
 # - Compile and install SimGrid itself. Clean the tree.
 # - Remove everything that was installed, and re-install what's needed by the SimGrid libraries before the Gran Final Cleanup
-RUN apt update && apt -y upgrade && \
+RUN apt-get --allow-releaseinfo-change update && apt -y upgrade && \
     apt install -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \
     mkdir /source/ && cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
     cd simgrid.git && \
     apt install -y g++ gcc git valgrind default-jdk gfortran libboost-dev libboost-all-dev cmake dpkg-dev && \
     mkdir /source/ && cd /source && git clone --depth=1 https://framagit.org/simgrid/simgrid.git simgrid.git && \
     cd simgrid.git && \
index 5526493..ee4e44c 100644 (file)
@@ -14,12 +14,11 @@ default:
 all: build-deps unstable tuto-s4u tuto-smpi
 
 stable:
 all: build-deps unstable tuto-s4u tuto-smpi
 
 stable:
-       export last_tag=`wget https://framagit.org/simgrid/simgrid/tags 2>/dev/null -O - | grep /simgrid/simgrid/-/tags/v | head -n1  | sed 's/[^>]*>//' | sed 's/<.*//'`; \
-       export url=`wget https://framagit.org/simgrid/simgrid/tags/$${last_tag} 2>/dev/null -O - | grep SimGrid- | perl -pe 's/.*?<a href="//' | sed 's/tar.gz.*/tar.gz/'` ;\
-       echo URL:$${url} ; \
+       export last_tag=$$(wget https://framagit.org/simgrid/simgrid/tags 2>/dev/null -O - | grep /simgrid/simgrid/-/tags/v | head -n1  | sed 's/[^>]*>//' | sed 's/<.*//'); \
+       export DLURL=$$(wget https://framagit.org/simgrid/simgrid/tags/$${last_tag} 2>/dev/null -O - | grep SimGrid- | perl -pe 's/.*?<a href="//' | sed 's/tar.gz.*/tar.gz/'); \
        docker build -f Dockerfile.stable \
        docker build -f Dockerfile.stable \
-                --build-arg DLURL=$${url} \
-                -t simgrid/stable:latest \
+                --build-arg DLURL=$${DLURL} \
+                -t simgrid/stable:latest \
                  -t simgrid/stable:$${last_tag} \
                 $(DOCKER_EXTRA) \
                  . | tee > stable.log
                  -t simgrid/stable:$${last_tag} \
                 $(DOCKER_EXTRA) \
                  . | tee > stable.log