Skip to content

Commit

Permalink
SOF-7572: add devcontainer/codespaces config
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas authored Jan 18, 2025
1 parent 3afefd6 commit 73ea9d4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"node": {
"version": "20"
}
},
"customizations": {
"vscode": {
"settings": {
"telemetry.telemetryLevel": "off",
"telemetry.enableTelemetry": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.wordWrap": "on",
"editor.tabSize": 2,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"editor.fontSize": 14,
"editor.rulers": [80],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#fdb88056"
}
},
"extensions": [
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"mutantdino.resourcemonitor"
]
}
},
"postCreateCommand": "bash .devcontainer/setup.sh",
"waitFor": "postCreateCommand"
}
12 changes: 12 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
sudo apt update && sudo apt install -y \
python3 \
python3-distutils \
build-essential \
libgl1-mesa-dev \
libxi-dev \
libxmu-dev \
libgles2-mesa-dev \
libx11-dev \
xvfb \
&& sudo ln -s /usr/bin/python3 /usr/bin/python

0 comments on commit 73ea9d4

Please sign in to comment.