Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[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 push       -> push all images to the cloud"
9         @echo "All our images are based on debian:testing"
10         @echo "Also possible: DOCKER_EXTRA=--no-cache make unstable"
11
12 stable:
13         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/<.*//'`; \
14         export url=`wget https://framagit.org/simgrid/simgrid/tags/$${last_tag} 2>/dev/null -O - | grep SimGrid- | perl -pe 's/.*?<li><a href="//' | sed 's/tar.gz.*/tar.gz/'` ;\
15         echo URL:$${url} ; \
16         docker build -f Dockerfile.stable \
17                  --build-arg DLURL=$${url} \
18                  -t simgrid/stable:latest \
19                  -t simgrid/stable:$${last_tag} \
20                  $(DOCKER_EXTRA) \
21                  . | tee > stable.log
22
23 unstable:
24         docker build -f Dockerfile.unstable \
25                  -t simgrid/unstable:latest \
26                  -t simgrid/unstable:$$(date --iso-8601) \
27                  $(DOCKER_EXTRA) \
28                  . | tee > unstable.log
29
30 build-deps:
31         docker build -f Dockerfile.build-deps \
32                  -t simgrid/build-deps:latest \
33                  -t simgrid/build-deps:$$(date --iso-8601) \
34                  $(DOCKER_EXTRA) \
35                  . | tee > build-deps.log
36
37 build-deps-stable:
38         docker build -f Dockerfile.build-deps-stable \
39                  -t simgrid/build-deps-stable:latest \
40                  -t simgrid/build-deps-stable:$$(date --iso-8601) \
41                  $(DOCKER_EXTRA) \
42                  . | tee > build-deps-stable.log
43
44 tuto-s4u: 
45         docker build -f Dockerfile.tuto-s4u \
46                  -t simgrid/tuto-s4u:latest \
47                  -t simgrid/tuto-s4u:$$(date --iso-8601) \
48                  $(DOCKER_EXTRA) \
49                  . | tee > tuto-s4u.log
50
51 tuto-smpi: 
52         docker build -f Dockerfile.tuto-smpi \
53                  -t simgrid/tuto-smpi:latest \
54                  -t simgrid/tuto-smpi:$$(date --iso-8601) \
55                  $(DOCKER_EXTRA) \
56                  . | tee > tuto-smpi.log
57
58 push:
59         docker push simgrid/build-deps
60         docker push simgrid/stable
61         docker push simgrid/unstable
62         docker push simgrid/tuto-s4u
63         docker push simgrid/tuto-smpi