-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add devcontainer to improve developer experience for contributors (#3942
) * Add devcontainer with Hugo Signed-off-by: Marc Duiker <[email protected]> * Add Node and install script Signed-off-by: Marc Duiker <[email protected]> * Update README with devcontainer Signed-off-by: Marc Duiker <[email protected]> * Add . Signed-off-by: Marc Duiker <[email protected]> * Update README.md Co-authored-by: Mark Fussell <[email protected]> Signed-off-by: Marc Duiker <[email protected]> * Increment step numbers Signed-off-by: Marc Duiker <[email protected]> * Clarify devcontainer in other IDEs Signed-off-by: Marc Duiker <[email protected]> * revert back to old numbering Co-authored-by: Hannah Hunter <[email protected]> Signed-off-by: Marc Duiker <[email protected]> * revert back to old numbering Co-authored-by: Hannah Hunter <[email protected]> Signed-off-by: Marc Duiker <[email protected]> * revert back to old numbering Co-authored-by: Hannah Hunter <[email protected]> Signed-off-by: Marc Duiker <[email protected]> * revert back to old numbering Co-authored-by: Hannah Hunter <[email protected]> Signed-off-by: Marc Duiker <[email protected]> --------- Signed-off-by: Marc Duiker <[email protected]> Co-authored-by: Mark Fussell <[email protected]> Co-authored-by: Hannah Hunter <[email protected]>
- Loading branch information
1 parent
2602ab4
commit 946c2c8
Showing
4 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "Ubuntu", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/hugo:1": { | ||
"extended": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"version": "lts", | ||
"nvmVersion": "latest" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker", | ||
"tamasfe.even-better-toml", | ||
"davidanson.vscode-markdownlint", | ||
"budparr.language-hugo-vscode" | ||
], | ||
"settings": { | ||
"git.alwaysSignOff": true | ||
} | ||
} | ||
}, | ||
"forwardPorts": [1313], | ||
"postAttachCommand": "bash scripts/init-container.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto eol=lf | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
git config --global --add safe.directory '*' | ||
cd ./daprdocs | ||
git submodule update --init --recursive | ||
npm install |