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