add some tools to generate graphs and squash images

This commit is contained in:
2016-05-22 18:21:38 +01:00
parent f728b94bcf
commit e7c1ed31ac
11 changed files with 115 additions and 5 deletions

15
bin/make-dependencies Executable file
View File

@@ -0,0 +1,15 @@
FILE=$DOCKER_HOME/images/$1.mk
if [ ! -e $FILE ]; then
FILE="$(mktemp)"
cat <<- EOF > $FILE
include \$(DOCKER_HOME)/build/Makefile
FROM = base:squash
NAME = $1
VERSION = latest
build: prepare $1
EOF
fi
make -Bnd -f $FILE build > $1.mk
cat $1.mk | make2graph | dot -Tpng -o $1.mk.png
cat $1.mk | make2graph -f x > $1.mk.xml
rm $FILE