Skip to content

gilbertotcc/docker-structurizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Structurizr CLI

The Structurizr CLI Docker image allows the execution of Structurizr CLI through Docker.

Usage

Create the image

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

Pull the image

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

Run Structurizr CLI

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 ./