Skip to content

Commit 47bdb9a

Browse files
committed
Issue #34 - GitHub CodeSpaces with CoreDev / RePebble SDK for Cloud builds
1 parent 65565c7 commit 47bdb9a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "Ubuntu",
3+
"image": "mcr.microsoft.com/devcontainers/base:noble",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {},
6+
"ghcr.io/devcontainers/features/python:1": {},
7+
"ghcr.io/devcontainers/features/github-cli:1": {}
8+
},
9+
"forwardPorts": [6080],
10+
"onCreateCommand": {
11+
"apt": "sudo apt update && sudo apt install -y libsdl2-dev",
12+
"pebble-tool": "curl -LsSf https://astral.sh/uv/install.sh | sh && uv tool install pebble-tool && pebble sdk install latest"
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"coredevices.pebble-vscode",
18+
"ms-vscode.cpptools-extension-pack",
19+
"-ms-python.python"
20+
],
21+
"settings": {
22+
"remote.autoForwardPorts": false,
23+
"workbench.welcomePage.walkthroughs.openOnInstall": false,
24+
"git.openRepositoryInParentFolders": "always"
25+
}
26+
},
27+
"codespaces": {
28+
"openFiles": [
29+
"src/c/watch_config.h"
30+
]
31+
}
32+
},
33+
34+
"workspaceFolder": "/workspaces/codespaces-pebble/mywatchface",
35+
"containerEnv": {
36+
"LOCALWORKSPACEFOLDERBASENAME": "${localWorkspaceFolderBasename}",
37+
"LOCALWORKSPACEFOLDER": "${localWorkspaceFolder}",
38+
"CONTAINERWORKSPACEFOLDER": "${containerWorkspaceFolder}",
39+
"CONTAINERWORKSPACEFOLDERBASENAME": "${containerWorkspaceFolderBasename}"
40+
}
41+
}

0 commit comments

Comments
 (0)