Skip to content

Commit

Permalink
(AB#4176) Add devcontainer for codespaces (#150)
Browse files Browse the repository at this point in the history
This change adds the devcontainer definition for the repository to
support contributing in GitHub Codespaces.
  • Loading branch information
michaeltlombardi committed May 17, 2023
1 parent e3f853f commit 1a31720
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu
RUN wget https://github.com/errata-ai/vale/releases/download/v2.26.0/vale_2.26.0_Linux_64-bit.tar.gz && \
tar -xvzf vale_2.26.0_Linux_64-bit.tar.gz -C bin && \
export PATH=./bin:"$PATH"
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/powershell:1": {
"modules": "Documentarian,Documentarian.Vale,Documentarian.MicrosoftDocs,Documentarian.ModuleAuthor"
}
},
"customizations": {
"vscode": {
"extensions": [
"chrischinchilla.vale-vscode",
"davidanson.vscode-markdownlint",
"docsmsft.docs-images",
"docsmsft.docs-linting",
"docsmsft.docs-markdown",
"docsmsft.docs-preview",
"docsmsft.docs-yaml",
"eamodio.gitlens",
"marvhen.reflow-markdown",
"ms-vscode.powershell",
"ms-vscode.wordcount",
"nhoizey.gremlins",
"redhat.vscode-yaml",
"shuworks.vscode-table-formatter",
"streetsidesoftware.code-spell-checker",
"tyriar.sort-lines",
"usernamehw.errorlens",
"wmaurer.change-case"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "pwsh",
"vale.valeCLI.path": "",
"vale.valeCLI.config": ""
}
}
},
"postStartCommand": "vale sync"
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Ensure devcontainer files are always LF
.devcontainer/** eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

0 comments on commit 1a31720

Please sign in to comment.