Skip to content

Instantly share code, notes, and snippets.

@ianmiell
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianmiell/6f1cee924f19185a929f to your computer and use it in GitHub Desktop.
Save ianmiell/6f1cee924f19185a929f to your computer and use it in GitHub Desktop.
# Generate a ShutIt dependency diagram as a pdf
apt-get update
apt-get -y install git python-pip graphviz
mkdir -p /opt/shutit
cd /opt/shutit
git clone https://github.com/ianmiell/shutit.git
git clone https://github.com/ianmiell/shutit-distro.git
cd shutit
pip install -r requirements.txt
cd -
find . | grep cnf$ | xargs chmod 0600
export PATH=$PATH:/opt/shutit/shutit
echo 'export PATH=$PATH:/opt/shutit/shutit' >> ~/.bashrc
cd shutit-distro/osquery
rm -rf /tmp/shutit/show_config
shutit sc -m .. --image_tag imiell/sd_base
dot -Tgv -o digraph.gv /tmp/shutit/show_config/*/digraph.txt && dot -Tpdf -o digraph.pdf digraph.gv
ls digraph.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment