Skip to content

Structurizr as a dev container feature #125

Closed Answered by JP-Dhabolt
ThePlenkov asked this question in Ideas
Discussion options

You must be logged in to vote

This is possible today, it just takes some time during initial devcontainer creation. In your devcontainer.json file, simply add:

{
	"features": {
		"ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {}
	},
	"postCreateCommand": "brew install structurizr-cli"
}

This will install homebrew via the feature, and install the structurizr-cli via homebrew after the container is created.

As a bonus, you can also add structurizr/lite in your docker-compose.yml and have it serve up the content alongside your normal devcontainer. Just modify the data directory volume mount to wherever you have your workspace files in the repo.

version: '3.8'
services:
  app:
    depends_on:
      - lite
    b…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ThePlenkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
enhancement New feature or request
3 participants
Converted from issue

This discussion was converted from issue #123 on June 21, 2023 15:54.