fix(repo): update devcontainer.json to use latest Node LTS (20.x.x)… (#20020)

This commit is contained in:
Tine Kondo 2023-11-03 21:05:17 +01:00 committed by GitHub
parent 96dd3b5aa6
commit 6f8682a8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 10 deletions

View File

@ -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"
} }

View 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

View File

@ -35,4 +35,6 @@ graph/client/src/assets/generated-task-graphs
/.env /.env
CODEOWNERS CODEOWNERS
/.nx/cache /.nx/cache
.pnpm-store