mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 20:41:04 -05:00
Add helper script to run structurizr-lite
This is useful for tweaking visual representations prior to upload
This commit is contained in:
parent
e77acbc5ad
commit
e4469ecf82
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.structurizr
|
13
docs/structurizr.sh
Normal file
13
docs/structurizr.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user