Files
NNG/.devcontainer/devcontainer.json

35 lines
1.2 KiB
JSON
Raw Normal View History

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",
"forwardPorts": [3000],
// 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
"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",
"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-07 14:13:09 +00:00
}