Last active
August 29, 2015 14:12
-
-
Save ianmiell/6f1cee924f19185a929f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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