Open
Description
Hello,
I am creating an analyzer for C4 models using "json" files created by structurizr:
Example:
After I finished all the development and the test units, I think it will be a good thing to have in the main repository.
Steps to generate the diagram
Preconditions
- Docker installed (docker desktop or rancher desktop)
- Structurizr cli
Getting the structurizr cli
docker pull structurizr/cli:latest
Executing the structurizr cli in the current folder
-
Download the following example from structurizr and save it as workspace.dsl
https://structurizr.com/dsl?example=big-bank-plc -
Convert the file to json
docker run -it --rm -v ${PWD}:/usr/local/structurizr structurizr/cli export -workspace workspace.dsl -format json
- Generate the Settings
DsmSuite.Analyzer.C4.exe AnalyzerSettings.xml
- Set "workspace.json" as the workspace to analyze
<?xml version="1.0" encoding="utf-8"?>
<AnalyzerSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<LogLevel>Error</LogLevel>
<Input>
<Workspace>workspace.json</Workspace>
</Input>
<Transformation />
<Output>
<Filename>Output.dsi</Filename>
<Compress>true</Compress>
</Output>
</AnalyzerSettings>
- Execute the analyzer:
DsmSuite.Analyzer.C4.exe AnalyzerSettings.xml
Example of Output:
output.dsi
Output.zip
Metadata
Metadata
Assignees
Labels
No labels