add some tools to generate graphs and squash images
This commit is contained in:
15
bin/make-dependencies
Executable file
15
bin/make-dependencies
Executable 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
|
||||
Reference in New Issue
Block a user