Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug leaks
[simgrid.git] / tools / docker / Makefile
1 default:
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"
13
14 all: build-deps unstable tuto-s4u tuto-smpi
15
16 stable:
17         # docker build -f Dockerfile.stable --build-arg DLURL=/simgrid/simgrid/uploads/0365f13697fb26eae8c20fc234c5af0e/SimGrid-3.25.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         export DLURL=$$(wget https://framagit.org/simgrid/simgrid/tags/$${last_tag} 2>/dev/null -O - | grep simgrid- | perl -pe 's/.*?<a href="(\/simgrid[^ ]*tar.gz)".*/$1/'); \
20   echo "DLURL=$$DLURL";\
21         docker build -f Dockerfile.stable \
22                  --build-arg DLURL=$${DLURL} \
23                  -t simgrid/stable:latest \
24                  -t simgrid/stable:$${last_tag} \
25                  $(DOCKER_EXTRA) \
26                  . | tee stable.log
27
28 unstable:
29         docker build -f Dockerfile.unstable \
30                  -t simgrid/unstable:latest \
31                  -t simgrid/unstable:$$(date --iso-8601) \
32                  $(DOCKER_EXTRA) \
33                  . | tee unstable.log
34
35 build-deps:
36         docker build -f Dockerfile.build-deps \
37                  -t simgrid/build-deps:latest \
38                  -t simgrid/build-deps:$$(date --iso-8601) \
39                  $(DOCKER_EXTRA) \
40                  . | tee build-deps.log
41
42 tuto-mc:
43         docker build -f Dockerfile.tuto-mc \
44                  -t simgrid/tuto-mc:latest \
45                  -t simgrid/tuto-mc:$$(date --iso-8601) \
46                  $(DOCKER_EXTRA) \
47                  . | tee tuto-mc.log
48
49 build-deps-stable:
50         docker build -f Dockerfile.build-deps-stable \
51                  -t simgrid/build-deps-stable:latest \
52                  -t simgrid/build-deps-stable:$$(date --iso-8601) \
53                  $(DOCKER_EXTRA) \
54                  . | tee build-deps-stable.log
55
56 tuto-s4u:
57         docker build -f Dockerfile.tuto-s4u \
58                  -t simgrid/tuto-s4u:latest \
59                  -t simgrid/tuto-s4u:$$(date --iso-8601) \
60                  $(DOCKER_EXTRA) \
61                  . | tee tuto-s4u.log
62
63 tuto-smpi:
64         docker build -f Dockerfile.tuto-smpi \
65                  -t simgrid/tuto-smpi:latest \
66                  -t simgrid/tuto-smpi:$$(date --iso-8601) \
67                  $(DOCKER_EXTRA) \
68                  . | tee tuto-smpi.log
69
70 push:
71         docker push simgrid/build-deps
72         docker push simgrid/stable
73         docker push simgrid/unstable
74         docker push simgrid/tuto-s4u
75         docker push simgrid/tuto-smpi
76         docker push simgrid/tuto-mc