Skip to content

Commit

Permalink
chore: add devcontainer definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Oct 12, 2024
1 parent 1f964f8 commit 90e2f70
Show file tree
Hide file tree
Showing 7 changed files with 65 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 @@
ARG VARIANT="20-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}

RUN apt-get update && apt-get install bash-completion gnupg2 -y
Empty file added .devcontainer/bashrc.sh
Empty file.
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "GitHub Runners AWS",
"build": { "dockerfile": "Dockerfile" },
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
},
"remoteEnv": {
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
},
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"orta.vscode-jest",
"yzhang.markdown-all-in-one"
]
}
},
"postCreateCommand": "yarn install",
"waitFor": "postCreateCommand",
"onCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
}
2 changes: 2 additions & 0 deletions .devcontainer/updateContent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn install --frozen-lockfile
printf "source \$WORKSPACE/.devcontainer/bashrc.sh\n" >> ~/.bashrc
7 changes: 7 additions & 0 deletions .devcontainer/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
,-----. _,-._
/ \ / \_/ \
| action | >-(_)-< Generate docs
\ / \_/ \_/ for your actions.
`-----' `-'

Welcome to action-docs
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"ms-vscode-remote.remote-containers",
"orta.vscode-jest",
"yzhang.markdown-all-in-one"
]
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[md]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}

0 comments on commit 90e2f70

Please sign in to comment.