-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jpower432/docs/c4-diagrams
docs: adds c4 architecture drawing for context,containers, and component
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## Context | ||
|
||
```mermaid | ||
graph LR | ||
subgraph External | ||
User | ||
end | ||
subgraph Container | ||
ContainerImage("Container Image") | ||
TrestlebotContainer("Trestlebot Container") | ||
end | ||
subgraph GitHub | ||
OSCALRepo("OSCAL Content Repository") | ||
GithubActions("GitHub Actions") | ||
CustomAction("Custom GitHub Action") | ||
end | ||
User -- Uses --> OSCALRepo | ||
GithubActions -- Triggers --> CustomAction | ||
CustomAction -- Builds --> ContainerImage | ||
ContainerImage -- Runs --> TrestlebotContainer | ||
OSCALRepo -- Uses --> GithubActions | ||
User -- Uses --> GithubActions | ||
``` | ||
|
||
## Container | ||
|
||
```mermaid | ||
graph LR | ||
subgraph Container | ||
ContainerImage("Container Image") | ||
TrestlebotCLI("Trestlebot CLI") | ||
end | ||
subgraph GitHub | ||
GithubActions("GitHub Actions") | ||
CustomAction("Custom GitHub Action") | ||
end | ||
GithubActions -- Triggers --> CustomAction | ||
CustomAction -- Builds --> ContainerImage | ||
ContainerImage -- Distributes --> TrestlebotCLI | ||
``` | ||
|
||
## Component | ||
|
||
```mermaid | ||
graph TD | ||
subgraph Container | ||
TrestlebotCLI("Trestlebot CLI") | ||
Entrypoint("Entrypoint script") | ||
end | ||
subgraph Runtime | ||
EnvironmentVariables("Environment Variables") | ||
GitRepo("Git Local Repository") | ||
end | ||
subgraph GitHub | ||
GitHubAction("GitHub Action") | ||
GitHubAPI("GitHub API") | ||
end | ||
GitHubAction -- Sets --> EnvironmentVariables | ||
GitHubAction -- Uses --> Entrypoint | ||
TrestlebotCLI -- Reads content --> GitRepo | ||
Entrypoint -- Runs --> TrestlebotCLI | ||
Entrypoint -- Reads --> EnvironmentVariables | ||
TrestlebotCLI -- Update content --> GitHubAPI | ||
``` |
File renamed without changes.
File renamed without changes.