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
|
|
|
{
|
2021-04-20 16:49:32 +03:00
|
|
|
"name": "Fluid",
|
|
|
|
"build": {
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
// Update 'NODE_VERSION' to pick a Node version: 10, 12, 14
|
|
|
|
"args": {
|
2022-08-13 01:26:33 +03:00
|
|
|
"NODE_VERSION": "14"
|
2021-04-20 16:49:32 +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
|
|
|
|
2021-04-20 16:49:32 +03:00
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
|
|
"extensions": [
|
2020-09-03 19:26:43 +03:00
|
|
|
"dbaeumer.vscode-eslint",
|
2020-09-12 00:20:54 +03:00
|
|
|
"ms-azuretools.vscode-docker",
|
2021-08-19 22:16:06 +03:00
|
|
|
"mutantdino.resourcemonitor"
|
2021-04-20 16:49:32 +03:00
|
|
|
],
|
2020-09-03 19:26:43 +03:00
|
|
|
|
|
|
|
// Forward port for Tinylicious
|
2021-04-20 16:49:32 +03:00
|
|
|
"forwardPorts": [ 7070 ],
|
|
|
|
|
|
|
|
// Invoke 'nvm' to install our preferred version of node, per the '.nvmrc' file
|
|
|
|
// located at the root of the ${workspaceFolder}.
|
2023-02-03 20:00:55 +03:00
|
|
|
// Also install pnpm as it is now required to install all packages
|
|
|
|
"postCreateCommand": ". /usr/local/share/nvm/nvm.sh; nvm install; npm i -g pnpm",
|
2021-04-20 16:49:32 +03:00
|
|
|
|
|
|
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
2022-08-11 23:05:38 +03:00
|
|
|
"remoteUser": "node",
|
|
|
|
"features": {
|
2022-08-23 01:21:54 +03:00
|
|
|
"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
|
2022-08-11 23:05:38 +03:00
|
|
|
}
|
2019-09-19 00:03:54 +03:00
|
|
|
}
|