|
| 1 | +// For more details, see https://aka.ms/devcontainer.json. |
| 2 | +{ |
| 3 | + "name": "advanced-integration-v2/react/python", |
| 4 | + "image": "mcr.microsoft.com/devcontainers/python:3.12", |
| 5 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 6 | + // Use 'onCreateCommand' to run commands when creating the container. |
| 7 | + "onCreateCommand": "bash .devcontainer/advanced-integration-v2-react-python/welcome-message.sh", |
| 8 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 9 | + "postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && chmod +x .devcontainer/post-commands.sh && .devcontainer/post-commands.sh post-create", |
| 10 | + // Use 'postAttachCommand' to run commands when attaching to the container. |
| 11 | + "postAttachCommand": "chmod +x .devcontainer/post-commands.sh && .devcontainer/post-commands.sh post-attach", |
| 12 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 13 | + "forwardPorts": [3000, 8080], |
| 14 | + "portsAttributes": { |
| 15 | + "8080": { |
| 16 | + "label": "Preview of Advanced Checkout Flow" |
| 17 | + }, |
| 18 | + "3000": { |
| 19 | + "label": "React", |
| 20 | + "onAutoForward": "openBrowserOnce" |
| 21 | + } |
| 22 | + }, |
| 23 | + "secrets": { |
| 24 | + "PAYPAL_CLIENT_ID": { |
| 25 | + "description": "Sandbox client ID of the application.", |
| 26 | + "documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox" |
| 27 | + }, |
| 28 | + "PAYPAL_CLIENT_SECRET": { |
| 29 | + "description": "Sandbox secret of the application.", |
| 30 | + "documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox" |
| 31 | + } |
| 32 | + }, |
| 33 | + "containerEnv": { |
| 34 | + "VISIBLE_FOLDER_SERVER": "python", |
| 35 | + "VISIBLE_FOLDER_CLIENT": "react", |
| 36 | + "VISIBLE_FOLDER_PROJECT": "advanced-integration", |
| 37 | + "VISIBLE_FOLDER_VERSION": "v2" |
| 38 | + }, |
| 39 | + "customizations": { |
| 40 | + "vscode": { |
| 41 | + "extensions": ["vsls-contrib.codetour", "PayPal.vscode-paypal"], |
| 42 | + "settings": { |
| 43 | + "git.openRepositoryInParentFolders": "always" |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
| 47 | + "features": { |
| 48 | + "ghcr.io/devcontainers/features/node:1": { |
| 49 | + "version": "lts" |
| 50 | + } |
| 51 | + } |
| 52 | +} |
0 commit comments