// For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { "name": "Node.js & TypeScript", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/typescript-node:4-24-bookworm", "features": { "ghcr.io/devcontainers/features/python@sha256:fbcad6955caeecc5ad3f7886baf652e25cba5225a6c4c2287c536de2e5607511": { "version": "3.12", "installPythonDevDependencies": true }, "ghcr.io/devcontainer-community/devcontainer-features/astral.sh-uv@sha256:36f95b90080248a05aba7b1b3cecf8018bb6d7222f6274f03f050b502abd4fe7": { "shellautocompletion": true }, "ghcr.io/devcontainers-extra/features/ripgrep@sha256:0dfc0ac16f0d6aa754d006a138fd4cb4a62c245d308306edf8ad1b7a80b8fdf2": {}, "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671": {} }, "runArgs": [ "-e", "OP_CONNECT_HOST=http://host.docker.internal:8082", "--env-file", "${localWorkspaceFolder}/.env.development" ], // required if you're using zscaler "containerEnv": { "NODE_EXTRA_CA_CERTS": "/home/node/zscaler-root-ca.pem" }, "mounts": [ "source=${localEnv:HOME}/Documents/zscaler-root-ca.pem,target=/home/node/zscaler-root-ca.pem,type=bind,consistency=cached" ], // the initialize command should use the 1password cli "op read > ${localWorkspaceFolder}/.env.development", // Once the container is created, the env is already set so we can remove the .env.development file that contains the token on-disk "postStartCommand": "if [ -n './.env.development' ]; then rm -f './.env.development'; fi;", "postCreateCommand": "if [ -n './.env.development' ]; then rm -f './.env.development'; fi;" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [8080, 8082] // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", // Configure tool-specific properties. // "customizations": {}, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }