Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Ubuntu",
"image": "mcr.microsoft.com/devcontainers/base:resolute",
"features": {
"ghcr.io/stu-bell/devcontainer-features/homebrew:1": {
"brewPackage": "hugo"
},
Comment on lines +5 to +7

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an official devcontainer feature for hugo, but I haven't tested it: https://github.com/devcontainers/features/tree/main/src/hugo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is, it's using an outdated Hugo version. So try for yourself, but I've encountered problems with the language implementation. Brew makes sure we have an up-to-date version of Hugo.

"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/stu-bell/devcontainer-features/node:0": {
"min_node_version": "22.12"
},
Comment on lines +9 to +11

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for node, there seems to be an official feature too: https://github.com/devcontainers/features/tree/main/src/node

@lenderom lenderom Jul 25, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to try it out. Several ways lead to Rome :D

"ghcr.io/devcontainers/features/python:1": {}
},
"postCreateCommand": "npm install && brew install prek && prek install -f"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "problem" is. As far as I know this are all standalone dev containers. I'm not sure on how to combine them 😅

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So feel free to try it out. I'm not motivated to invest more time in this feature 🙈

}
Loading