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,
|
|
|
|
|
// TODO: `lake` and `npm install` could run simultaneously using `&`
|
|
|
|
|
// the only reason I didn't do it is because the output gets mixed.
|
|
|
|
|
"postCreateCommand": "(cd ~/lean4game && npm install) && (cd ~/game && lake update && lake exe cache get && lake build)",
|
|
|
|
|
"postAttachCommand": "cd ~/lean4game && 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-06-16 13:15:12 +02:00
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 14:13:09 +00:00
|
|
|
}
|