structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
491 stars 75 forks source link

Added dockerfile #51

Closed venthur closed 3 years ago

venthur commented 3 years ago

If you want, you can use this as a starting point for a Dockerfile.

Your customers will appreciate an "official" docker image as we get it for the structurizr-lite -- also this way we don't run into potential issues with the -cli image being out of date.

Closes: #50

venthur commented 3 years ago

I forgot, here's how to use it:

docker build -t structurizr-cli
docker run --rm -ti -v $PWD/:/cli structurizr-cli validate -w workspace.dsl
simonbrowndotje commented 3 years ago

Thanks, I have a Dockerfile that's work in progress already, and it also supports the new version of the CLI (which is no longer packaged as a Spring Boot app). You can try it by:

docker run -it --rm -v $PWD:/usr/local/structurizr structurizr/cli validate -w workspace.dsl
venthur commented 3 years ago

Excellent news! Maybe you could update the documentation here that refers to the other two docker projects (the first one of them is outdated for a couple of months already) and mention the official image instead. That would also close #50

simonbrowndotje commented 3 years ago

The documentation is already changed ... I need to release a new version of the DSL parser onto Maven Central before a CLI release can happen, so I've not pushed any changes to the CLI repo yet.