Skip to content

Commit 47b0711

Browse files
(AB#61939) Add devcontainer (#9819)
This change adds a devcontainer definition to the repository. The devcontainer can be used locally or as the backing definition for a codespace and includes: - PowerShell - Git - The GitHub CLI - Vale - All suggested VS Code extensions for the repository This change enables us to move forward with advising contributors to use GitHub Codespaces for their contributions to reduce the friction for setting up their editor. - Resolves AB#61939
1 parent bb0ec28 commit 47b0711

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Diff for: .devcontainer/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu
2+
RUN wget https://github.com/errata-ai/vale/releases/download/v2.22.0/vale_2.22.0_Linux_64-bit.tar.gz && \
3+
tar -xvzf vale_2.22.0_Linux_64-bit.tar.gz -C bin && \
4+
export PATH=./bin:"$PATH"

Diff for: .devcontainer/devcontainer.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
},
5+
"features": {
6+
"ghcr.io/devcontainers/features/git:1": {},
7+
"ghcr.io/devcontainers/features/github-cli:1": {},
8+
"ghcr.io/devcontainers/features/powershell:1": {}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"darkriszty.markdown-table-prettify",
14+
"davidanson.vscode-markdownlint",
15+
"docsmsft.docs-authoring-pack",
16+
"eamodio.gitlens",
17+
"errata-ai.vale-server",
18+
"marvhen.reflow-markdown",
19+
"ms-vscode.powershell",
20+
"ms-vscode.wordcount",
21+
"nhoizey.gremlins",
22+
"redhat.vscode-yaml",
23+
"shuworks.vscode-table-formatter",
24+
"streetsidesoftware.code-spell-checker",
25+
"tyriar.sort-lines",
26+
"usernamehw.errorlens",
27+
"wmaurer.change-case",
28+
"Acrolinx.vscode-sidebar",
29+
"yzane.markdown-pdf"
30+
]
31+
}
32+
}
33+
}

Diff for: .gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# Declare files that will always have CRLF line endings on checkout.
1010
*.sln text eol=crlf
1111

12+
# Ensure devcontainer files are always LF
13+
.devcontainer/** eol=lf
14+
1215
# Denote all files that are truly binary and should not be modified.
1316
*.png binary
1417
*.jpg binary

0 commit comments

Comments
 (0)