Skip to content

Commit

Permalink
[build] Use docker with no TTY for Structurizr
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed May 1, 2024
1 parent 2388801 commit c732ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ all:

start:
docker pull structurizr/lite
docker run -it --rm -p 8080:8080 -v $(PWD):/usr/local/structurizr structurizr/lite
docker run --rm -p 8080:8080 -v $(PWD):/usr/local/structurizr structurizr/lite

ci html: dist/index.html dist/manual.html dist/guidebook.html

Expand All @@ -28,4 +28,4 @@ guidebook.adoc: docs/*.adoc 00-guidebook.header
# And the diagrams we can export as PUML using Structurizr CLI
exported_images:
docker pull structurizr/cli:latest
docker run -it --rm -v $$PWD:/usr/local/structurizr structurizr/cli export -workspace workspace.dsl -format plantuml -output diagrams
docker run --rm -v $$PWD:/usr/local/structurizr structurizr/cli export -workspace workspace.dsl -format plantuml -output diagrams
3 changes: 1 addition & 2 deletions utils/structurizr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
cd $(dirname "$0")/../doc

# Execute the command
docker run -d -it --rm -p 8080:8080 -v $PWD:/usr/local/structurizr structurizr/lite
docker run -d --rm -p 8080:8080 -v $PWD:/usr/local/structurizr structurizr/lite &
open http://localhost:8080

0 comments on commit c732ae2

Please sign in to comment.