mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 12:31:06 -05:00
14 lines
505 B
Bash
14 lines
505 B
Bash
#!/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.
|
|
|
|
echo "hosting on http://localhost:${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
|