-
Notifications
You must be signed in to change notification settings - Fork 532
Expand file tree
/
Copy pathdevcontainer.json
More file actions
57 lines (57 loc) · 2.12 KB
/
Copy pathdevcontainer.json
File metadata and controls
57 lines (57 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// For more details, see https://aka.ms/devcontainer.json.
{
"name": "advanced-integration-v2/html/java",
"image": "mcr.microsoft.com/devcontainers/java:21",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Use 'onCreateCommand' to run commands when creating the container.
"onCreateCommand": "bash .devcontainer/advanced-integration-v2-html-java/welcome-message.sh",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "chmod +x .devcontainer/update_settings.sh && .devcontainer/update_settings.sh && chmod +x .devcontainer/post-commands.sh && .devcontainer/post-commands.sh post-create",
// Use 'postAttachCommand' to run commands when attaching to the container.
"postAttachCommand": "chmod +x .devcontainer/post-commands.sh && .devcontainer/post-commands.sh post-attach",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 8080],
"portsAttributes": {
"8080": {
"label": "Preview of Advanced Checkout Flow"
},
"3000": {
"label": "HTML",
"onAutoForward": "openBrowserOnce"
}
},
"secrets": {
"PAYPAL_CLIENT_ID": {
"description": "Sandbox client ID of the application.",
"documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox"
},
"PAYPAL_CLIENT_SECRET": {
"description": "Sandbox secret of the application.",
"documentationUrl": "https://developer.paypal.com/dashboard/applications/sandbox"
}
},
"containerEnv": {
"VISIBLE_FOLDER_SERVER": "java",
"VISIBLE_FOLDER_CLIENT": "html",
"VISIBLE_FOLDER_PROJECT": "advanced-integration",
"VISIBLE_FOLDER_VERSION": "v2"
},
"customizations": {
"vscode": {
"extensions": ["vsls-contrib.codetour", "PayPal.vscode-paypal"],
"settings": {
"git.openRepositoryInParentFolders": "always"
}
}
},
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "22",
"jdkDistro": "tem",
"installMaven": "true"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
}
}