Add diagrams make target

This commit is contained in:
Khue Doan 2021-06-20 18:24:23 +07:00
parent 8fa93b61b6
commit d7aa7e69d6
No known key found for this signature in database
GPG Key ID: 4C1A90A461B3C27B
2 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,14 @@
.POSIX:
.PHONY: todo
todo:
printf "# TODO\n\n" > todo.md
git grep --line-number TODO .. ':!.' \
| awk --field-separator ':| TODO ' '{ printf "- [%s](%s#L%s)\n", $$4, $$1, $$2 }' \
| sort \
>> todo.md
.PHONY: diagrams
diagrams:
cd diagrams \
&& python *

View File

@ -8,7 +8,7 @@ from diagrams.onprem.container import Docker
from diagrams.onprem.gitops import ArgoCD
from diagrams.onprem.iac import Ansible, Terraform
with Diagram("Provision (sperated by logical layers)", outformat="jpg"):
with Diagram("Provision (sperated by logical layers)", outformat="jpg", show=False):
controller = Client("Controller (PC or laptop)")
bare_metal_machines = Server(f"Bare metal machine(s)")