Structurizr Lite will look for a workspace.dsl and workspace.json file in your Structurizr data directory, in that order, and use the file it finds first.
I'd assume this means I can put a workspace.dsl next to workspace.json and it's take precedence. But if I add the example workspace.dsl and restart the container it doesn't change anything.
If I remove the workspace.json and just leave the workspace.dsl I get errors:
[WARN ] 2023-11-20 21:09:09.316 [pool-3-thread-1] SearchController - Error indexing workspace with ID 1
com.structurizr.onpremises.component.workspace.WorkspaceComponentException: Could not get workspace 1
Create your workspace using the DSL, as a file named workspace.dsl in your Structurizr Lite data directory.
As mentioned, adding workspace.dsl in the root of the data directory is having no effect.
I'd like to use the DSL file as that seems cleaner and there's more documentation. But I can't see how to load it using the structurizr/lite Docker image.
Question
I am running Docker on WIndows 10.
data
directorydocker run -it --rm -p 8080:8080 -v $pwd\data:/usr/local/structurizr structurizr/onpremises
1
folder in mydata
directory containingworkspace.json
The Usage docs says
I'd assume this means I can put a
workspace.dsl
next toworkspace.json
and it's take precedence. But if I add the exampleworkspace.dsl
and restart the container it doesn't change anything.If I remove the
workspace.json
and just leave theworkspace.dsl
I get errors:The Lite Quickstart docs also say:
I can't find
workspace.dsl
in the root of the data directory. If I put the example there it has no effect.Lastly, the Lite Workflow docs say:
I'd like to use the DSL file as that seems cleaner and there's more documentation. But I can't see how to load it using the
structurizr/lite
Docker image.