diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 73c9077457..3f89fc0d91 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,24 +1,33 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres { - "name": "KlickerUZH Dev Container", - "dockerComposeFile": "docker-compose.yml", - "service": "app", - "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", + "name": "KlickerUZH Dev Container", + "dockerComposeFile": "docker-compose.yml", + "service": "app", + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/itsmechlark/features/doppler:2": {} + }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // This can be used to network with other containers or with the host. - // "forwardPorts": [3000, 5432], + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // This can be used to network with other containers or with the host. + // "forwardPorts": [3000, 5432], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "pnpm install" + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pnpm install", + // Configure tool-specific properties. + // "customizations": {}, - // Configure tool-specific properties. - // "customizations": {}, + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + // see https://github.com/DopplerUniversity/mandalorian-gifs-node/blob/main/.devcontainer/devcontainer.json + // start vscode from the terminal using doppler run -- code . + "containerEnv": { + "DOPPLER_PROJECT": "klicker-uzh", + "DOPPLER_CONFIG": "dev", + "DOPPLER_TOKEN": "${localEnv:DOPPLER_TOKEN}" // Don't hard-code this! + } }