Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a missing build-dep of the website
[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         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/<.*//'); \
18         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/'); \
19         docker build -f Dockerfile.stable \
20                  --build-arg DLURL=$${DLURL} \
21                  -t simgrid/stable:latest \
22                  -t simgrid/stable:$${last_tag} \
23                  $(DOCKER_EXTRA) \
24                  . | tee > stable.log
25
26 unstable:
27         docker build -f Dockerfile.unstable \
28                  -t simgrid/unstable:latest \
29                  -t simgrid/unstable:$$(date --iso-8601) \
30                  $(DOCKER_EXTRA) \
31                  . | tee > unstable.log
32
33 build-deps:
34         docker build -f Dockerfile.build-deps \
35                  -t simgrid/build-deps:latest \
36                  -t simgrid/build-deps:$$(date --iso-8601) \
37                  $(DOCKER_EXTRA) \
38                  . | tee > build-deps.log
39
40 tuto-mc:
41         docker build -f Dockerfile.tuto-mc \
42                  -t simgrid/tuto-mc:latest \
43                  -t simgrid/tuto-mc:$$(date --iso-8601) \
44                  $(DOCKER_EXTRA) \
45                  . | tee > tuto-mc.log
46
47 build-deps-stable:
48         docker build -f Dockerfile.build-deps-stable \
49                  -t simgrid/build-deps-stable:latest \
50                  -t simgrid/build-deps-stable:$$(date --iso-8601) \
51                  $(DOCKER_EXTRA) \
52                  . | tee > build-deps-stable.log
53
54 tuto-s4u: 
55         docker build -f Dockerfile.tuto-s4u \
56                  -t simgrid/tuto-s4u:latest \
57                  -t simgrid/tuto-s4u:$$(date --iso-8601) \
58                  $(DOCKER_EXTRA) \
59                  . | tee > tuto-s4u.log
60
61 tuto-smpi: 
62         docker build -f Dockerfile.tuto-smpi \
63                  -t simgrid/tuto-smpi:latest \
64                  -t simgrid/tuto-smpi:$$(date --iso-8601) \
65                  $(DOCKER_EXTRA) \
66                  . | tee > tuto-smpi.log
67
68 push:
69         docker push simgrid/build-deps
70         docker push simgrid/stable
71         docker push simgrid/unstable
72         docker push simgrid/tuto-s4u
73         docker push simgrid/tuto-smpi
74         docker push simgrid/tuto-mc