fix(repo): update devcontainer.json to use latest Node LTS (20.x.x)… (#20020)
This commit is contained in:
parent
96dd3b5aa6
commit
6f8682a8e1
@ -3,26 +3,28 @@
|
|||||||
{
|
{
|
||||||
"name": "NxDevContainer",
|
"name": "NxDevContainer",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:20-bullseye",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/rust:1": {}
|
"ghcr.io/devcontainers/features/rust:1": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// 4211 = nx graph port
|
// 4211 = nx graph port
|
||||||
"forwardPorts": [4211],
|
"forwardPorts": [4211],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": "pnpm install",
|
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
|
||||||
|
// Configure tool-specific properties.
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["nrwl.angular-console"]
|
"extensions": [
|
||||||
|
"nrwl.angular-console",
|
||||||
|
"firsttris.vscode-jest-runner",
|
||||||
|
"eamodio.gitlens"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"debug.javascript.autoAttachFilter": "onlyWithFlag" // workaround for that issue: https://github.com/microsoft/vscode-js-debug/issues/374#issuecomment-622239998
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
|
||||||
// "customizations": {},
|
|
||||||
|
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "root"
|
// "remoteUser": "root"
|
||||||
}
|
}
|
||||||
|
|||||||
11
.devcontainer/postCreateCommand.sh
Executable file
11
.devcontainer/postCreateCommand.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Update the underlying (Debian) OS, to make sure we have the latest security patches and libraries like 'GLIBC'
|
||||||
|
sudo apt-get update && sudo apt-get -y upgrade
|
||||||
|
|
||||||
|
# Update pnpm
|
||||||
|
#npm install -g pnpm
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
@ -35,4 +35,6 @@ graph/client/src/assets/generated-task-graphs
|
|||||||
/.env
|
/.env
|
||||||
CODEOWNERS
|
CODEOWNERS
|
||||||
|
|
||||||
/.nx/cache
|
/.nx/cache
|
||||||
|
|
||||||
|
.pnpm-store
|
||||||
Loading…
x
Reference in New Issue
Block a user