2023-06-07 14:13:09 +00:00
|
|
|
{
|
|
|
|
|
"dockerComposeFile": "./docker-compose.yml",
|
2023-06-13 12:02:08 +02:00
|
|
|
"service": "game",
|
2023-08-07 17:30:56 +02:00
|
|
|
"workspaceFolder": "/home/node/game",
|
2023-06-16 13:15:12 +02:00
|
|
|
"forwardPorts": [3000],
|
2023-08-06 19:22:55 +02:00
|
|
|
// These settings make sure that the created files (lake-packages etc.) are owned
|
|
|
|
|
// by the user and not `root`.
|
|
|
|
|
// see also https://containers.dev/implementors/json_reference/
|
2023-08-07 17:30:56 +02:00
|
|
|
// and https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
|
2023-08-06 19:22:55 +02:00
|
|
|
"remoteUser": "node",
|
|
|
|
|
"updateRemoteUserUID": true,
|
2023-08-07 17:30:56 +02:00
|
|
|
// I don't know why I need this, but I did...
|
|
|
|
|
"overrideCommand": true,
|
2023-09-10 13:36:53 +02:00
|
|
|
"onCreateCommand": {
|
|
|
|
|
"npm_install": "(cd ~/lean4game && npm install)",
|
2023-12-01 17:45:29 +01:00
|
|
|
// BUG: Apparently `&& lake exe cache get` was needed here because the update hook was broken.
|
|
|
|
|
// should been fixed in https://github.com/leanprover-community/mathlib4/pull/8755
|
|
|
|
|
"lake_build": "(cd ~/game && lake update -R && lake exe cache get && lake build)"
|
2023-09-10 13:36:53 +02:00
|
|
|
},
|
2023-11-09 17:51:20 +01:00
|
|
|
"postStartCommand": "cd ~/lean4game && export VITE_LEAN4GAME_SINGLE=true && npm start",
|
2023-06-16 13:15:12 +02:00
|
|
|
"customizations": {
|
|
|
|
|
"vscode": {
|
|
|
|
|
"settings": {
|
|
|
|
|
"remote.autoForwardPorts": false
|
2023-08-04 13:48:02 +02:00
|
|
|
},
|
|
|
|
|
"extensions": [
|
|
|
|
|
"leanprover.lean4"
|
|
|
|
|
]
|
2023-09-10 12:38:30 +02:00
|
|
|
},
|
|
|
|
|
"codespaces": {
|
|
|
|
|
"openFiles": ["Game.lean"]
|
2023-06-16 13:15:12 +02:00
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 14:13:09 +00:00
|
|
|
}
|