2 @echo "Existing Targets:"
3 @echo " make build-deps -> build an image with all possible SimGrid dependencies"
4 @echo " make stable -> build the latest stable version of SimGrid (with SMPI w/o MC)"
5 @echo " make unstable -> build the git version of SimGrid (with SMPI, w/o MC)"
6 @echo " make tuto-s4u -> build all what you need to take the S4U tutorial"
7 @echo " make tuto-smpi -> build all what you need to take the SMPI tutorial"
8 @echo " make tuto-mc -> build the git version of SimGrid (with SMPI and MC)"
9 @echo " make all -> build all but stable (ie, build-deps unstable tuto-s4u tuto-smpi)"
10 @echo " make push -> push all images to the cloud"
11 @echo "All our images are based on debian:testing"
12 @echo "Also possible: DOCKER_EXTRA=--no-cache make unstable"
14 all: build-deps unstable tuto-s4u tuto-smpi tuto-mc
17 # docker build -f Dockerfile.stable --build-arg DLURL=/simgrid/simgrid/-/archive/v3.28/simgrid-v3.28.tar.gz -t simgrid/stable:latest -t simgrid/stable:v3.25 . |tee stable.log
18 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/<.*//'); \
19 echo "DLURL=/simgrid/simgrid/-/archive/$${last_tag}/simgrid-$${last_tag}.tar.gz";\
20 docker build -f Dockerfile.stable \
21 --build-arg DLURL=/simgrid/simgrid/-/archive/$${last_tag}/simgrid-$${last_tag}.tar.gz \
22 -t simgrid/stable:latest \
23 -t simgrid/stable:$${last_tag} \
28 docker build -f Dockerfile.unstable \
29 -t simgrid/unstable:latest \
30 -t simgrid/unstable:$$(date --iso-8601) \
35 docker build -f Dockerfile.build-deps \
36 -t simgrid/build-deps:latest \
37 -t simgrid/build-deps:$$(date --iso-8601) \
39 . | tee build-deps.log
42 docker build -f Dockerfile.tuto-mc \
43 -t simgrid/tuto-mc:latest \
44 -t simgrid/tuto-mc:$$(date --iso-8601) \
49 docker build -f Dockerfile.build-deps-stable \
50 -t simgrid/build-deps-stable:latest \
51 -t simgrid/build-deps-stable:$$(date --iso-8601) \
53 . | tee build-deps-stable.log
56 docker build -f Dockerfile.tuto-s4u \
57 -t simgrid/tuto-s4u:latest \
58 -t simgrid/tuto-s4u:$$(date --iso-8601) \
63 docker build -f Dockerfile.tuto-smpi \
64 -t simgrid/tuto-smpi:latest \
65 -t simgrid/tuto-smpi:$$(date --iso-8601) \
70 docker push --all-tags simgrid/build-deps
71 docker push --all-tags simgrid/stable
72 docker push --all-tags simgrid/unstable
73 docker push --all-tags simgrid/tuto-s4u
74 docker push --all-tags simgrid/tuto-smpi
75 docker push --all-tags simgrid/tuto-mc