Skip to content

Commit

Permalink
Merge branch 'add_raspbian_gen_os' into terraform-provider
Browse files Browse the repository at this point in the history
* add_raspbian_gen_os:
  update raspbian.png for size
  Added raspbian.png for Raspberry Pis.
  Add Raspberry Pi logo for describing RPis.
  fix: removed over-nesting in resources file and added test (mingrammer#498)
  feat(node): add Onprem puppet (mingrammer#492)
  feat(node): add SVN (mingrammer#426)
  feat(node): add Dynatrace in monitoring category (mingrammer#471)
  docs(contributing): add black tool requirement for autogen.sh (mingrammer#434)
  feat(node): add Tyk node (mingrammer#449)
  feat(node): add starlette framework (mingrammer#443)
  chore(deps-dev): bump docusaurus from 1.14.6 to 1.14.7 in /website (mingrammer#485)
  chore(deps): bump jinja2 from 2.11.3 to 3.0.1 (mingrammer#534)
  fix(website): add IBM in the side menu (mingrammer#574)
  chore(deps): bump graphviz from 0.16 to 0.17 (mingrammer#561)
  docs: replace master/slave terminology in Cluster example (mingrammer#521)
  fix(autogen): run autogen after IBM provider added. (mingrammer#569)
  docs(all): update from main to primary (mingrammer#573)
  feat(node): latex logo (mingrammer#565)
  feat(node): add k3s icon (mingrammer#575)
  • Loading branch information
haad committed May 12, 2022
2 parents 982383b + ad8f037 commit 1d3ea4e
Show file tree
Hide file tree
Showing 50 changed files with 3,527 additions and 2,667 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ ffmpeg -i my_big_image.jpg -vf scale=w=256:h=256:force_original_aspect_ratio=dec

Then just run the `./autogen.sh` to generate the added or updated node classes. (cf. [DEVELOPMENT][DEVELOPMENT.md])

> IMPORTANT NOTE: To run `autogen.sh`, you need [round][round] and
> IMPORTANT NOTE: To run `autogen.sh`, you need [round][round], [black][black] and
> [inkscape][inkscape] command lines that are used for cleaning the image
> resource filenames.
> resource filenames and formatting the generated python code.
>
> macOS users can download the inkscape via Homebrew.
>
> Or you should use the docker image.
[DEVELOPMENT.md]: ./DEVELOPMENT.md
[round]: https://github.com/mingrammer/round
[black]: https://pypi.org/project/black
[inkscape]: https://inkscape.org/ko/release

### Update Aliases
Expand Down
4 changes: 4 additions & 0 deletions diagrams/generic/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class LinuxGeneral(_Os):
_icon = "linux-general.png"


class Raspbian(_Os):
_icon = "raspbian.png"


class Suse(_Os):
_icon = "suse.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/onprem/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class Gvisor(_Container):
_icon = "gvisor.png"


class K3S(_Container):
_icon = "k3s.png"


class Lxc(_Container):
_icon = "lxc.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/onprem/iac.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class Awx(_Iac):
_icon = "awx.png"


class Puppet(_Iac):
_icon = "puppet.png"


class Terraform(_Iac):
_icon = "terraform.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/onprem/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class Datadog(_Monitoring):
_icon = "datadog.png"


class Dynatrace(_Monitoring):
_icon = "dynatrace.png"


class Grafana(_Monitoring):
_icon = "grafana.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/onprem/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ class Traefik(_Network):
_icon = "traefik.png"


class Tyk(_Network):
_icon = "tyk.png"


class Vyos(_Network):
_icon = "vyos.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/onprem/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ class Gitlab(_Vcs):
_icon = "gitlab.png"


class Svn(_Vcs):
_icon = "svn.png"


# Aliases
4 changes: 4 additions & 0 deletions diagrams/programming/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class Spring(_Framework):
_icon = "spring.png"


class Starlette(_Framework):
_icon = "starlette.png"


class Vue(_Framework):
_icon = "vue.png"

Expand Down
4 changes: 4 additions & 0 deletions diagrams/programming/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class Kotlin(_Language):
_icon = "kotlin.png"


class Latex(_Language):
_icon = "latex.png"


class Matlab(_Language):
_icon = "matlab.png"

Expand Down
30 changes: 15 additions & 15 deletions docs/getting-started/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ with Diagram("Clustered Web Services", show=False):
ECS("web3")]

with Cluster("DB Cluster"):
db_main = RDS("userdb")
db_main - [RDS("userdb ro")]
db_primary = RDS("userdb")
db_primary - [RDS("userdb ro")]

memcached = ElastiCache("memcached")

dns >> lb >> svc_group
svc_group >> db_main
svc_group >> db_primary
svc_group >> memcached
```

Expand Down Expand Up @@ -196,14 +196,14 @@ with Diagram("Advanced Web Service with On-Premise", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main - Redis("replica") << metrics
grpcsvc >> main
primary = Redis("session")
primary - Redis("replica") << metrics
grpcsvc >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main - PostgreSQL("replica") << metrics
grpcsvc >> main
primary = PostgreSQL("users")
primary - PostgreSQL("replica") << metrics
grpcsvc >> primary

aggregator = Fluentd("logging")
aggregator >> Kafka("stream") >> Spark("analytics")
Expand Down Expand Up @@ -239,14 +239,14 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="brown") >> main
primary = Redis("session")
primary - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="brown") >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main - Edge(color="brown", style="dotted") - PostgreSQL("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="black") >> main
primary = PostgreSQL("users")
primary - Edge(color="brown", style="dotted") - PostgreSQL("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="black") >> primary

aggregator = Fluentd("logging")
aggregator >> Edge(label="parse") >> Kafka("stream") >> Edge(color="black", style="bold") >> Spark("analytics")
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ with Diagram("Simple Web Service with DB Cluster", show=False):
web = ECS("service")

with Cluster("DB Cluster"):
db_main = RDS("main")
db_main - [RDS("replica1"),
db_primary = RDS("primary")
db_primary - [RDS("replica1"),
RDS("replica2")]

dns >> web >> db_main
dns >> web >> db_primary
```

![simple web service with db cluster diagram](/img/simple_web_service_with_db_cluster_diagram.png)
Expand Down
12 changes: 6 additions & 6 deletions docs/guides/edge.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main \
primary = Redis("session")
primary \
- Edge(color="brown", style="dashed") \
- Redis("replica") \
<< Edge(label="collect") \
<< metrics
grpcsvc >> Edge(color="brown") >> main
grpcsvc >> Edge(color="brown") >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main \
primary = PostgreSQL("users")
primary \
- Edge(color="brown", style="dotted") \
- PostgreSQL("replica") \
<< Edge(label="collect") \
<< metrics
grpcsvc >> Edge(color="black") >> main
grpcsvc >> Edge(color="black") >> primary

aggregator = Fluentd("logging")
aggregator \
Expand Down
1 change: 1 addition & 0 deletions docs/nodes/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Node classes list of generic provider.
- **diagrams.generic.os.Debian**
- **diagrams.generic.os.IOS**
- **diagrams.generic.os.LinuxGeneral**
- **diagrams.generic.os.Raspbian**
- **diagrams.generic.os.Suse**
- **diagrams.generic.os.Ubuntu**
- **diagrams.generic.os.Windows**
Expand Down
5 changes: 5 additions & 0 deletions docs/nodes/onprem.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.container.Docker**
- **diagrams.onprem.container.Firecracker**
- **diagrams.onprem.container.Gvisor**
- **diagrams.onprem.container.K3S**
- **diagrams.onprem.container.Lxc**, **LXC** (alias)
- **diagrams.onprem.container.Rkt**, **RKT** (alias)

Expand Down Expand Up @@ -123,6 +124,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.iac.Ansible**
- **diagrams.onprem.iac.Atlantis**
- **diagrams.onprem.iac.Awx**
- **diagrams.onprem.iac.Puppet**
- **diagrams.onprem.iac.Terraform**

## onprem.identity
Expand Down Expand Up @@ -152,6 +154,7 @@ Node classes list of onprem provider.

- **diagrams.onprem.monitoring.Cortex**
- **diagrams.onprem.monitoring.Datadog**
- **diagrams.onprem.monitoring.Dynatrace**
- **diagrams.onprem.monitoring.Grafana**
- **diagrams.onprem.monitoring.Humio**
- **diagrams.onprem.monitoring.Newrelic**
Expand Down Expand Up @@ -189,6 +192,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.network.Powerdns**
- **diagrams.onprem.network.Tomcat**
- **diagrams.onprem.network.Traefik**
- **diagrams.onprem.network.Tyk**
- **diagrams.onprem.network.Vyos**, **VyOS** (alias)
- **diagrams.onprem.network.Wildfly**
- **diagrams.onprem.network.Zookeeper**
Expand Down Expand Up @@ -232,6 +236,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.vcs.Gitea**
- **diagrams.onprem.vcs.Github**
- **diagrams.onprem.vcs.Gitlab**
- **diagrams.onprem.vcs.Svn**

## onprem.workflow

Expand Down
9 changes: 0 additions & 9 deletions docs/nodes/openstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ title: OpenStack

Node classes list of openstack provider.

## openstack.adjacentenablers


## openstack.apiproxies

- **diagrams.openstack.apiproxies.EC2API**
Expand Down Expand Up @@ -51,9 +48,6 @@ Node classes list of openstack provider.

- **diagrams.openstack.frontend.Horizon**

## openstack.lifecyclemanagement


## openstack.monitoring

- **diagrams.openstack.monitoring.Monasca**
Expand All @@ -73,9 +67,6 @@ Node classes list of openstack provider.

- **diagrams.openstack.nfv.Tacker**

## openstack.operations


## openstack.optimization

- **diagrams.openstack.optimization.Congress**
Expand Down
2 changes: 2 additions & 0 deletions docs/nodes/programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Node classes list of programming provider.
- **diagrams.programming.framework.Rails**
- **diagrams.programming.framework.React**
- **diagrams.programming.framework.Spring**
- **diagrams.programming.framework.Starlette**
- **diagrams.programming.framework.Vue**

## programming.language
Expand All @@ -61,6 +62,7 @@ Node classes list of programming provider.
- **diagrams.programming.language.Java**
- **diagrams.programming.language.Javascript**, **JavaScript** (alias)
- **diagrams.programming.language.Kotlin**
- **diagrams.programming.language.Latex**
- **diagrams.programming.language.Matlab**
- **diagrams.programming.language.Nodejs**, **NodeJS** (alias)
- **diagrams.programming.language.Php**, **PHP** (alias)
Expand Down
Loading

0 comments on commit 1d3ea4e

Please sign in to comment.