Skip to content

Commit

Permalink
chore: Update devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Aug 12, 2024
1 parent c6a45d3 commit 331334a
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 3 deletions.
92 changes: 89 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,92 @@
"enableNonRootDocker": "true"
}
},
"forwardPorts": [4000, 35729],
"postCreateCommand": "sudo apt update && sudo apt install -y webp && bundle install --gemfile=website/Gemfile"
}
"forwardPorts": [
4000,
35729
],
"remoteUser": "vscode",
"containerUser": "vscode",
"updateRemoteUserUID": true,
"postCreateCommand": "bash .devcontainer/setup.sh",
"customizations": {
"vscode": {
"extensions": [
"aaron-bond.better-comments",
"ms-azuretools.vscode-docker",
"davidanson.vscode-markdownlint",
"albert.TabOut",
"mhutchie.git-graph",
"bierner.emojisense",
"redhat.vscode-yaml",
"pkief.material-icon-theme",
"task.vscode-task",
"GitHub.copilot",
"foxundermoon.shell-format",
"DavidAnson.vscode-markdownlint",
"tamasfe.even-better-toml"
],
"settings": {
"editor.fontFamily": "Cascadia Code",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"editor.cursorBlinking": "phase",
"editor.bracketPairColorization.enabled": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.guides.bracketPairs": true,
"editor.guides.bracketPairsHorizontal": true,
"editor.guides.highlightActiveBracketPair": true,
"editor.hover.delay": 500,
"editor.renderWhitespace": "boundary",
"editor.rulers": [
150,
200
],
"editor.stickyScroll.enabled": false,
"explorer.autoReveal": false,
"files.associations": {
"**/*.json5": "jsonc"
},
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"workbench.iconTheme": "material-icon-theme",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "keep",
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format",
"files.eol": "\n"
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.wordWrap": "on"
},
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker",
"editor.quickSuggestions": {
"strings": true
}
}
}
}
}
}
6 changes: 6 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

sudo apt update
sudo apt install -y webp

bundle install --gemfile=website/Gemfile

0 comments on commit 331334a

Please sign in to comment.