The Structurizr CLI Docker image allows the execution of Structurizr CLI through Docker.
From the root folder of the repository, you can build the Structurizr CLI Docker
imager running docker build
as follows.
$ docker build . --tag local/structurizr:latest
If you prefer to download the Docker image from Docker Hub, you can run the
following command to pull it from the registry.
You can replace latest
with the desired tag.
$ docker pull gilbertotcc/structurizr:latest
The Docker image supports all the commands that Structurizr CLI supports:
The following example shows the usage of the Structurizr Docker image to export
the workspace defined in sample_arch.dsl
to a JSON representation.
$ docker run --rm -it -v $(pwd):/home local/structurizr:latest \
export --workspace sample_arch.dsl --format json --output ./