Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
docker: use dpkg-shlibdeps to not uninstall the dependencies of libsimgrid.so
[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 push       -> push all images to the cloud"
8         @echo "All our images are based on debian:testing"
9         @echo "Also possible: DOCKER_EXTRA=--no-cache make unstable"
10
11 stable:
12         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/<.*//'`; \
13         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/'` ;\
14         echo URL:$${url} ; \
15         docker build -f Dockerfile.stable \
16                  --build-arg DLURL=$${url} \
17                  -t simgrid/stable:latest \
18                  -t simgrid/stable:$${last_tag} \
19                  $(DOCKER_EXTRA) \
20                  . | tee > stable.log
21
22 unstable:
23         docker build -f Dockerfile.unstable \
24                  -t simgrid/unstable:latest \
25                  -t simgrid/unstable:$$(date --iso-8601) \
26                  $(DOCKER_EXTRA) \
27                  . | tee > unstable.log
28
29 build-deps:
30         docker build -f Dockerfile.build-deps \
31                  -t simgrid/build-deps:latest \
32                  -t simgrid/build-deps:$$(date --iso-8601) \
33                  $(DOCKER_EXTRA) \
34                  . | tee > build-deps.log
35
36 tuto-s4u: 
37         docker build -f Dockerfile.tuto-s4u \
38                  -t simgrid/tuto-s4u:latest \
39                  -t simgrid/tuto-s4u:$$(date --iso-8601) \
40                  $(DOCKER_EXTRA) \
41                  . | tee > tuto.log
42
43 push:
44         docker push simgrid/build-deps
45         docker push simgrid/stable
46         docker push simgrid/unstable
47         docker push simgrid/tuto-s4u