1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-23 12:31:06 -05:00

Add helper script to run structurizr-lite

This is useful for tweaking visual representations prior to upload
This commit is contained in:
Matt Gibson 2025-05-01 09:22:43 -07:00
parent e77acbc5ad
commit e4469ecf82
No known key found for this signature in database
GPG Key ID: 7CBCA182C13B0912
2 changed files with 14 additions and 0 deletions

1
docs/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.structurizr

13
docs/structurizr.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
## start Structurizr Lite with the given workspace file, relative to the current working directory. Omit the file extension.
## Optional second argument of a port number to use. Default is 8085.
PORT=${2:-8085}
# Check if the workspace file exists
if [ ! -f "$1.dsl" ]; then
echo "Workspace file $1 does not exist."
exit 1
fi
docker run -it --rm -p $PORT:8080 -v $(pwd):/usr/local/structurizr -e STRUCTURIZR_WORKSPACE_FILENAME=$1 structurizr/lite