2021-04-20 16:49:32 +03:00
|
|
|
// Fluid Development Container based on "docker-from-docker" template:
|
|
|
|
// https://github.com/microsoft/vscode-dev-containers/blob/master/containers/docker-from-docker/.devcontainer/devcontainer.json
|
2020-09-03 19:26:43 +03:00
|
|
|
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
|
2019-07-13 00:33:41 +03:00
|
|
|
{
|
2023-04-01 02:51:09 +03:00
|
|
|
"name": "Fluid",
|
|
|
|
"build": {
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
// Update 'NODE_VERSION' to pick a Node version: 10, 12, 14
|
|
|
|
"args": {
|
2023-08-24 02:46:36 +03:00
|
|
|
"NODE_VERSION": "18"
|
2023-04-01 02:51:09 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"runArgs": ["--init"],
|
|
|
|
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"],
|
|
|
|
"overrideCommand": false,
|
2019-08-28 04:25:04 +03:00
|
|
|
|
2023-04-01 02:51:09 +03:00
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
2023-12-14 21:58:33 +03:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
2024-09-16 19:46:10 +03:00
|
|
|
"biomejs.biome",
|
2023-12-14 21:58:33 +03:00
|
|
|
"dbaeumer.vscode-eslint",
|
|
|
|
"esbenp.prettier-vscode",
|
2024-01-16 22:31:17 +03:00
|
|
|
"ms-azure-devops.azure-pipelines",
|
2023-12-14 21:58:33 +03:00
|
|
|
"ms-azuretools.vscode-docker",
|
2024-01-16 22:31:17 +03:00
|
|
|
"mutantdino.resourcemonitor"
|
2023-12-14 21:58:33 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2020-09-03 19:26:43 +03:00
|
|
|
|
2023-04-01 02:51:09 +03:00
|
|
|
// Forward port for Tinylicious
|
|
|
|
"forwardPorts": [7070],
|
2021-04-20 16:49:32 +03:00
|
|
|
|
2023-04-01 02:51:09 +03:00
|
|
|
// Invoke 'nvm' to install our preferred version of node, per the '.nvmrc' file
|
|
|
|
// located at the root of the ${workspaceFolder}.
|
2023-04-03 23:47:59 +03:00
|
|
|
// Also run corepack enable to allow node to download and use the right version of pnpm.
|
|
|
|
"postCreateCommand": ". /usr/local/share/nvm/nvm.sh; nvm install; corepack enable",
|
2021-04-20 16:49:32 +03:00
|
|
|
|
2023-04-01 02:51:09 +03:00
|
|
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
|
|
"remoteUser": "node",
|
|
|
|
"features": {
|
|
|
|
"git-lfs": "latest"
|
|
|
|
// We do not install Azure CLI and Github CLI because of security considerations
|
|
|
|
// when creating Github Codespaces instances. It's ok to install them manually if
|
|
|
|
// using this file to develop in a local container.
|
|
|
|
// "azure-cli": "latest", // DO NOT UNCOMMENT
|
|
|
|
// "github-cli": "latest", // DO NOT UNCOMMENT
|
2024-02-10 01:02:29 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
// Setting this so Codespaces default settings use it. It's not really *required*, but a clean build
|
|
|
|
// can be lengthy enough that it's convenient.
|
|
|
|
"hostRequirements": {
|
|
|
|
"cpus": 16,
|
|
|
|
"memory": "64gb"
|
2023-04-01 02:51:09 +03:00
|
|
|
}
|
2019-09-19 00:03:54 +03:00
|
|
|
}
|