Files
NNG/.devcontainer/devcontainer.json

29 lines
1.0 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,
// 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",
"customizations": {
"vscode": {
"settings": {
"remote.autoForwardPorts": false
2023-08-04 13:48:02 +02:00
},
"extensions": [
"leanprover.lean4"
]
}
}
2023-06-07 14:13:09 +00:00
}